0

我试图在新项目中添加新母版页,在添加时抛出“添加新项目”我有这个错误“ Data at the root level is invalid. Line 1. Position1”请问如何解决这个问题?

我的 web.config

<?xml version="1.0"?>

<!--
  For more information on how to configure your ASP.NET application, please visit
  http://go.microsoft.com/fwlink/?LinkId=169433
  -->

<configuration>

    <system.web>
        <compilation debug="false" targetFramework="4.0" />
    </system.web>

</configuration>
4

1 回答 1

0

好的,我可以在我的环境中重现您的错误。如果您的项目中有无效的 XML 文件,则会出现此问题。可能是web.config。

您能否确认项目中的 XML 文件格式正确?尝试使用 IE 打开 XML 文件并确保没有错误。

于 2013-02-20T13:51:57.833 回答