开发者

Error when deploying ASP.NET MVC 3 Razor web app to server

I just started using ASP.NET MVC 3 with the Razor view engine. It works great locally, however when I published the site to my web server, it gives me the error:

Method not found: 'System.Web.Razor.GeneratorResults System.Web.Razor.RazorTemplateEngine.Genera开发者_JAVA百科teCode(System.IO.TextReader, System.String, System.String, System.String)'.

I installed ASP.NET MVC 3 on the server and it's running under the .NET 4 app pool. Any ideas?


My guess is you have a preview version of MVC isntalled on the server. Make sure that you have MVC 3 RTM installed.


Simply uninstalling and reinstalling MVC alone didn't fix it, I needed to recycle my app pool and restart my IIS application as well.

My guess is there is a bug in the update from RC to RTM versions... The Gu is on the case so i'm sure it will be fixed in the next MVC revision.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜