简体   繁体   English

asp.net 4.0项目服务器标记格式不正确的编译错误

[英]asp.net 4.0 project the server tag is not well formed compilation error

I have upgraded projects to .net framework 4.0 (VS 2010) and I am getting lots of "The server tag is not well formed". 我已将项目升级到.net Framework 4.0(VS 2010),并且收到很多“服务器标签格式不正确”的信息。

for example, validationgroup="Check has missing closing double quot. 例如,validationgroup =“ Check缺少结束双引号”。
ValidationExpression="[^\\"\\'] " -- I had to convert that to ValidationExpression="[^& quot ; ValidationExpression =“ [^ \\” \\'] “-我必须将其转换为ValidationExpression =” [^" '] " to make it work. '] “使它起作用。

We have many dozens of web projects and I can go through each of this and correct those things. 我们有许多Web项目,我可以逐一检查并更正这些问题。 This was working fine with VS 2008 (framework 2.0) so I was wondering is there any settings to turn off this kind of validation when compiling the project? VS 2008(framework 2.0)可以很好地工作,所以我想知道在编译项目时是否有任何设置可以关闭这种验证?

I have tried turning off HTML Validation (Tools -> Options -> Text Editor -> HTML -> Unchecked show errors) even though it shows me those error. 我尝试关闭HTML验证(工具->选项->文本编辑器-> HTML->未选中的显示错误),即使它显示了那些错误。

Any help would be appreciated. 任何帮助,将不胜感激。

The page parser became stricter in ASP.NET 4.0. 页面解析器在ASP.NET 4.0中变得更加严格。 You can review details of this and other "breaking changes" that occurred in the newest version on the ASP.NET 4 Breaking Changes page. 您可以在ASP.NET 4 Breaking Changes页面上查看最新版本中发生的此错误和其他“重大更改”的详细信息。

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

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