Parser Error In Global.asax File
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might <%@ application codebehind="global.asax.cs" inherits=" mvcapplication" language="c#" %> have Meta Discuss the workings and policies of this site About an error occurred during the parsing of a resource required to service this request asp net Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting global asax inherits attribute ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 could not load type global million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Global.asax parse error after minor change and revert to previous version up vote 6 down vote favorite 2 The project in context is: ASP .NET Web Application .NET Framework: 4 Platform Target: x86 IDE: Visual Studio 2010 Ultimate
<%@ Application Codebehind="global.asax.cs" Inherits=" Webapiapplication" Language="c#" %>
SP1 Multiple projects in solution with ASP .NET being the startup project. It has been in production for months without glitches until yesterday. I cleaned up the [Global.asax] file (removed unused using statements, refactored, etc.), ran the solution and got the following 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 'CloudTech.ATS.WebClient.Global'. Source File: /global.asax Line: 1 Source Error: Line 1: <%@ Application CodeBehind="Global.asax.cs" Inherits="CloudTech.ATS.WebClient.Global" Language="C#" %> Here is the Global.asax Markup: <%@ Application CodeBehind="Global.asax.cs" Inherits="CloudTech.ATS.WebClient.Global" Language="C#" %> Here is the Global.asax.cs Code (with internal code removed): using System; using System.Linq; namespace CloudTech.ATS.WebClient { public class Global: System.Web.HttpApplication { } } After wrestling with this error for a while, I searched, restarted my computer, performed a full clean on the solution, force rebuilt but with no avail. Frustrated, I finally changed only the web a
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the
Parser Error Could Not Load Type Inherits
workings and policies of this site About Us Learn more about Stack could not load type aspx Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs could not load type c# Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join http://stackoverflow.com/questions/16621069/global-asax-parse-error-after-minor-change-and-revert-to-previous-version them; it only takes a minute: Sign up Parser Error Message: Could not load type 'TestMvcApplication.MvcApplication' up vote 144 down vote favorite 30 I am getting the following error on one of our production servers. Not sure why it is working on the DEV server? Parser Error Description: An error occurred during the parsing of a resource required to service http://stackoverflow.com/questions/1598829/parser-error-message-could-not-load-type-testmvcapplication-mvcapplication this request. Please review the following specific parse error details and modify your source file appropriately. Parser Error Message: Could not load type 'TestMvcApplication.MvcApplication'. Source Error: Line 1: <%@ Application Codebehind="Global.asax.cs" Inherits="TestMvcApplication.MvcApplication" Language="C#" %> Source File: /global.asax Line: 1 Not sure if anybody came across this error before and how it was solved, but I have reached the end. Any help would be appreciated. I also need to mention that this is the published code, so all is compiled. Can there be something wrong with my compiler settings? .net asp.net-mvc share|improve this question edited Nov 28 '10 at 16:33 p.campbell 56.2k49187272 asked Oct 21 '09 at 5:07 Riaan Engelbrecht 814277 possible duplicate of Could not load type MvcApplication –Alexander Prokofyev Mar 17 '11 at 14:07 15 Exit Visual Studio & restart fixed it for me. –RickAndMSFT May 3 '13 at 18:05 delete global.asax file and add a new one, and you will be alright. –DotNetGeek Jul 8 '13 at 7:51 This happened to me when deploying a previously work
Oct 30, 2014 @ 08:54am Reply I've developed a prototype using ASP.NET MVC4 with AngularJs, and now attempting to deploy to IIS; however could not I'm getting a "Parser Error"Here is the error text, also in screen shot below :Server Error in '/' Application.Parser ErrorDescription: An error occurred during the parsing of a resource required to could not load service this request. Please review the following specific parse error details and modify your source file appropriately. Parser Error Message: Could not load type 'RageSys.WebApiApplication'.Source Error: Line 1: <%@ Application Codebehind="Global.asax.cs" Inherits="RageSys.WebApiApplication" Language="C#" %>Source File: /global.asax Line: 1 Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.17929My server VM specs are :Windows 2008 Server R2 Enterprise, SP1AMD Opteron Processor 627615.6GB RAMAnd in IIS 7.5, my website's application pool is set to .Net Framework v4.0.30319UPDATE:I copied the website's DLL file over to the BIN folder, and my website came up ! © 1996-2016