Parser Error: Server Error in '/' Application

前端 未结 19 3019
失恋的感觉
失恋的感觉 2020-12-05 22:33

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 a

19条回答
  •  长情又很酷
    2020-12-05 23:28

    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.

提交回复
热议问题