开发者

MVC3 Razor View Project using VB.NET gives Syntax error in Error List window for all vbhtml pages

开发者 https://www.devze.com 2023-02-12 12:34 出处:网络
Using MVC3 and Razor View engine, I created a VB.NET web application in VS 2010开发者_JAVA百科. This creates the default Account and Home Controller along with corresponding Action Views.

Using MVC3 and Razor View engine, I created a VB.NET web application in VS 2010开发者_JAVA百科. This creates the default Account and Home Controller along with corresponding Action Views.

Now if I open any vbhtml file I get the following error message in the Error List window.

Error 50 Syntax error. C:****\MVC3AppVB\Views\Account\LogOn.vbhtml MVC3AppVB (See screenshot here http://www.flickr.com/photos/7672540@N07/5469248676/)

Who ever this app compiles and runs without any problem. I tried to create the same project using C# and there is no error message in the Error List Window. Can anyone explain why this error message shows up only for VB and not for C#?

Thanks in advance.


The problem is with MVC3 and webpage 1.0 tooling. This issue has been answered in codeplex.


Probably some bug with the Intellisense. Try recompiling the project. Unfortunately the Razor Intellisense is far from perfect. I hope it will be improved in future releases of Razor.

0

精彩评论

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