4
我在IIS 6.0上部署Asp.Net MVC 2.0應用程序。當我請求任何頁面時,我收到以下錯誤。無法加載類型「System.Web.Mvc.ViewMasterPage <dynamic>」。
Parser Error Message:
Could not load type 'System.Web.Mvc.ViewMasterPage<dynamic>'.
源錯誤:
Line 1: <%@ Master Language="C#" Inherits=
"System.Web.Mvc.ViewMasterPage<dynamic>" %>
Line 2: <%@ Import Namespace="Combres.Mvc" %>
Line 3:
源文件:/myApp/Views/Shared/Site.Master線路:1
Version Information: Microsoft .NET Framework Version:4.0.30319;
ASP.NET Version:4.0.30319.1
你有一種叫做動態的類型嗎?您可能需要將其更改爲:'System.Web.Mvc.ViewMasterPage' – Martin 2010-10-30 15:43:15
@Martin:dynamic是.Net 4中的有效關鍵字。相同的代碼在IIS 7.0上運行良好。 – Amitabh 2010-10-30 22:19:11