Click here to Skip to main content
15,885,896 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello.

I have an MVC application. I am trying to publish it in IIS.

The app is throwing this 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 'MyAppMVC.MvcApplication'.

Source Error:


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

Source File: /global.asax Line: 1

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.34212

I did already the basic clean, rebuild. But problem continue. Also, the global.asax file exists in the IIS folder.

I check already that my Global.asax.cs is inheriting form HttpAplication like this MvcApplication : System.Web.HttpApplication. Also, I configured the right .NET version in my App Pool.

BTW, also was checked that the MyAppMVC.dll is in bin folder and the managed pipeline mode is integrated.


Anyone have an idea about it?
Posted
Comments
Nathan Minier 23-Dec-14 7:20am    
Folder permissions can often lead to issues with IIS and MVC.

There's some good guidance in :
http://stackoverflow.com/questions/14934006/iis-iusrs-and-iusr-permissions-in-iis8

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