简体   繁体   English

安装VS2012后生成项目时出错

[英]Error in building project after installing VS2012

I have just installed VS2012 on my system and VS2010 was already installed. 我刚刚在系统上安装了VS2012,并且已经安装了VS2010。 I have a project made in VS2010 which was build successfully but later when i have installed VS2012 then it gives an error while build. 我有一个在VS2010中完成的项目,该项目已成功构建,但是稍后安装VS2012时,它在构建时出现错误。 Here is the error : 这是错误:

Error   430 The best overloaded method match for 'System.Web.UI.HtmlControls.HtmlTableRowCollection.Add(System.Web.UI.HtmlControls.HtmlTableRow)' has some invalid arguments 

I have searched on google and i found some of articles with the solution of this problem. 我在Google上进行了搜索,发现了一些解决此问题的文章。 All they have mentioned that either remove the tags or remove the runat="server" from the table tag to solve this issue. 他们提到的所有解决方案都是删除标签或从表标签中删除runat =“ server”。 I have tried and it worked for me. 我已经尝试过,并且对我有用。

But now my main concern is that i have more than 100 such pages and i don't want to remove it from each and every page. 但是现在我主要担心的是,我有100多个这样的页面,并且我不想从每个页面中删除它。 So is there any alternative solution to solve this issue. 因此,有没有其他解决方案可以解决此问题。 I mean to say can we handle this error in web.config or somewhere else so that i don't need to do it for every page. 我的意思是说我们可以在web.config或其他地方处理此错误,这样我就不必为每个页面都这样做了。

If you have any idea then kindly suggest me and your suggestions will be really appreciated. 如果您有任何想法,请提出建议,我们将不胜感激。 Thanks in advance. 提前致谢。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM