2
我無法運行我的asp.net mvc 2應用程序。使用VS2010 ASP.NET開發服務器。爲什麼我的應用程序無法加載MvcApplication?
Server Error in '/' Application.
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: Could not load type 'PrototypeB.MvcApplication'.
Source Error:
Line 1: <%@ Application Codebehind="Global.asax.cs" Inherits="PrototypeB.MvcApplication" Language="C#" %>
Source File: /global.asax Line: 1
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1
global.aspx.cs:在瀏覽器中顯示
錯誤
namespace PrototypeB
{
public class MvcApplication : System.Web.HttpApplication
{
...
你可以檢查它是否已編譯,並且dll位於相應的bin目錄中。 – 2010-12-01 15:46:19