InvalidCastException is thrown after installing ASP.NET MVC 4 Beta

前端 未结 9 1632
小鲜肉
小鲜肉 2020-12-25 09:29

I get the following exception after installing ASP.NET MVC 4 Beta on a machine with ASP.NET MVC 3.

System.InvalidCastException was unhandled by user c

9条回答
  •  天涯浪人
    2020-12-25 09:48

    Some of your code is running on the current MVC bits, while others have been pushed out to the newer. Without understanding the code, I can't tell you what specific bit is causing the issue.

    Having said that, I would never set up a beta on a production development machine. It is too easy to create a VM these days and run the beta on an image. In Windows 7+, you can boot the image off the metal and not take the perf hit, if you need that (with dev tool betas, you oft do).

提交回复
热议问题