Click here to Skip to main content
15,887,989 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Hello Gurus,
I am getting below error :
Server Error in '/' Application.


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 'WebApplication5.MvcApplication'.

Source Error: 


Line 1:  <%@ Application Codebehind="Global.asax.cs" Inherits="WebApplication5.MvcApplication" Language="C#" %>

Source File: /global.asax    Line: 1 


in the first time run, the desired page is shown in the browser, after that, when i click on other links, it gives the above error.

Please help.

Thanks
Saroj Mahanta

What I have tried:

i tried all the possible solutions given by various gurus, but still unable to fix the problem.
Posted
Updated 16-Oct-18 5:48am

1 solution

The file Global.asax.cs does not contain a class called MvcApplication in the namespace WebApplication5 which inherits from System.Web.HttpApplication.

You either need to fix the class name or namespace name to match the Inherits attribute, or fix the Inherits attribute to match the class and namespace name.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900