Questions tagged «asp.net-webpages»

9
安装ASP.NET MVC 4 Beta后引发InvalidCastException
在装有ASP.NET MVC 3的计算机上安装ASP.NET MVC 4 Beta后,出现以下异常。 用户代码Message = [A] System.Web.WebPages.Razor.Configuration.HostSection无法处理System.InvalidCastException,无法将其强制转换为[B] System.Web.WebPages.Razor.Configuration.HostSection。类型A源自'System.Web.WebPages.Razor,Version = 1.0.0.0,Culture = neutral,PublicKeyToken = 31bf3856ad364e35'在上下文'Default'中的位置'C:\ Windows \ Microsoft.Net \ assembly \ GAC_MSIL \ System .Web.WebPages.Razor \ v4.0_1.0.0.0__31bf3856ad364e35 \ System.Web.WebPages.Razor.dll'。类型B源自位置'C:\ Windows \ Microsoft.Net \ assembly \ GAC_MSIL \ System的上下文'Default'中的'System.Web.WebPages.Razor,Version = 2.0.0.0,Culture = neutral,PublicKeyToken = 31bf3856ad364e35' .Web.WebPages.Razor \ v4.0_2.0.0。0__31bf3856ad364e35 \ …
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.