开发者

Visual Studio Green Warning Underlines

I'm having a strange problem in Visual Studio. Today it's decided to add green wiggly underlines to my code in the aspx files:

Visual Studio Green Warning Underlines

I've tried to remove some of the code I've written today in the hope of finding what is tripping up the IDE but I can't work it out.

Everything compiles and runs fine. When I hover my mouse over any of the underlines I get the following message "This name contains uppercase characters, which is not allowed".

I've got this on all of my content pages.

Has anyone seen this before or can suggest how to work out what might be wrong?

And by the way, the code开发者_如何学C passes W3C validation


it is because

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

this line

which indicate that you html must be comptiable with the xtml rules.

Rules of XHTML

XHTML elements must be properly nested
XHTML elements must always be closed
XHTML elements must be in lowercase
XHTML documents must have one root element

check it over here : http://www.w3schools.com/xhtml/xhtml_html.asp


OK I found the problem. I hope this helps someone.

After hacking up various pages I eventually unearthed a single line complaining about a telerik control on my Master Page (the IDE had no problem with any other telerik controls elsewhere). The warning was "unrecognized tag prefix or device filter 'telerik'". The solution still built at this point.

After some investigating I discovered I had an old version of the Telerik.Web.Design.dll in my bin folder. I removed it, recompiled and re-opened the pages and lo and behold the error was gone.

Nothing to do with UPPERCASE tags at all.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜