显示带有“解析器错误"的错误页面;
问题描述:
我正在使用asp.net MVC3和Visual Studio2010.
当我调试应用程序时,它显示为
I am using asp.net MVC3 and visual studio 2010.
when I am debugging the application it is displaying like
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 'App1.MvcApplication'.
Source Error:
Line 1: <%@ Application Codebehind="Global.asax.cs" Inherits="App1.MvcApplication" Language="C#" %>
Source File: /global.asax Line: 1
谁能帮我解决这个问题.
can any one help me to solve this issue.
答
NamespaceName是您的global.asax.cs文件的名称空间.试试这个:
Hi,
NamespaceName is the namespace for your global.asax.cs file. Try this:
<%@ Application Codebehind="Global.asax.cs" Inherits="NamespaceName.MvcApplication" Language="C#" %>
--Amit
--Amit