I am trying to deploy my web project and I keep getting this error:
Line 1: <%@ Application Codebehind=“Global.asax.cs” Inherits=“nadeem.MvcApplication” Langu
I faced similar error, tried all the suggestions above, but did not resolve. what worked for me is this:
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
{
....
But if it doesn't look like above, you will receive that error, The value in the Inherits attribute of your Global.asax
file must match a type that is derived from System.Web.HttpApplication
.
Check below link for more info:
Parser Error: Server Error in '/' Application