2013-02-20 71 views
0

我一个尝试添加新的母版页中的新鲜项目抛出“添加新项目”,加上我有这样的错误‘Data at the root level is invalid. Line 1. Position 1’ 如何解决这个好吗?添加主页错误?

我的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> 
+0

你试过关闭Visual Studio并重新打开它吗? – 2013-02-20 13:47:05

+0

是每次同样的错误 – Saqi 2013-02-20 13:47:42

+0

是您的母版页成功添加到项目中? – 2013-02-20 13:48:14

回答

0

好吧,我可以重现你的错误在我的环境。 ,如果你在你的项目中一个无效的XML文件的问题发生。也许在web.config。

你能否证实,在你的项目中的XML文件是很好形成?尝试使用IE打开XML文件并确保没有错误。

+0

我的项目超级新鲜,没有任何其他文件,我添加的是主页,这是错误的! – Saqi 2013-02-20 14:06:16