分析器错误:在'/'Application Server的错误 [英] Parser Error: Server Error in '/' Application
问题描述
我得到了以下错误:此请求提供服务所需资源的分析过程中出现错误,请检查下列特定分析错误详细信息并适当地修改源文件。
分析器错误信息:'未能加载类型'nadeem.MvcApplication'`。
源错误:行1:<%@应用codebehind =Global.asax.cs中继承=nadeem.MvcApplicationLANGUAGE =C#%>
右键单击的Global.asax
文件,然后单击查看标记
。您将看到属性继承=nadeem.MvcApplication
。这意味着你的的Global.asax
文件试图从类型继承 nadeem.MvcApplication
。
现在双击你的的Global.asax
文件,看看在你的的Global.asax.cs
文件。它应该是这个样子:
命名空间纳迪姆
{
公共类MvcApplication:System.Web.HttpApplication
{
....
如果没有,那么你将收到错误您收到。在你的的Global.asax
文件中的继承
属性的值必须是从<$ C $派生的类型相匹配C> System.Web.HttpApplication 。
I got the following error: "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 'nadeem.MvcApplication'`.
Source Error: Line 1: <%@ Application Codebehind="Global.asax.cs" Inherits="nadeem.MvcApplication" Language="C#" %>
Right-click your Global.asax
file and click View Markup
. You will see the attribute Inherits="nadeem.MvcApplication"
. This means that your Global.asax
file is trying to inherit from the type nadeem.MvcApplication
.
Now double click your Global.asax
file and see what the class name specified in your Global.asax.cs
file is. It should look something like this:
namespace nadeem
{
public class MvcApplication: System.Web.HttpApplication
{
....
If it doesn't, then you will receive the error you received. The value in the Inherits
attribute of your Global.asax
file must match a type that is derived from System.Web.HttpApplication
.
这篇关于分析器错误:在'/'Application Server的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!