显示带有“解析器错误"的错误页面; [英] displaying Error page with "Parser Error"

查看:55
本文介绍了显示带有“解析器错误"的错误页面;的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我正在使用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


这篇关于显示带有“解析器错误"的错误页面;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆