Asp.net Parser Error Could Not Load Type Inherits
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring parser error message could not load type 'global' developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question parser error message could not load type mvcapplication x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; an error occurred during the parsing of a resource required to service this request asp net it only takes a minute: Sign up Parser Error Message: Could not load type 'TestMvcApplication.MvcApplication' up vote 143 down vote favorite 30 I am getting the following error on one of our production servers. Not sure why it is working parser error global.asax line 1 on the DEV server? 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 '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
Could Not Load Type C#
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 55.8k49186270 asked Oct 21 '09 at 5:07 Riaan Engelbrecht 809277 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. –RickAnd - MSFT 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 working application. Something in IIS (7) got into a bad state; resetting IIS fixed the problem. –BurnsBA Sep 21 at 12:34 add a comment| 38 Answers 38 active oldest votes 1 2 next up vote 147 down vote None of the other answers worked for me. I fixed my error by changing the web project's output path. I had had it set to bin\debug but the web project doesn't work unless the output path is set to simply "bin" share|improve this answer edited Jul 7 '15 at 19:25 Community♦ 1 answered Oct 13 '11 at 18:16 Brian Leeming 5,28131639 This was my problem, caused me so much grief because none of the other solutions here worked for me..
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site
Parser Error Message Could Not Load Type '_default'
About Us Learn more about Stack Overflow the company Business Learn more about what is parser error hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join <%@ application codebehind="global.asax.cs" inherits="" language="c#" %> the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Parser Error Message: Could http://stackoverflow.com/questions/1598829/parser-error-message-could-not-load-type-testmvcapplication-mvcapplication not load type 'sometype' up vote 10 down vote favorite 3 I am experiencing an error that I am unable to resolve for some time now. I was wondering if someone can help identify the cause of this error? I am completely new to asp / asax. After some research, I think that the error I am getting is due to the web application trying http://stackoverflow.com/questions/15071220/parser-error-message-could-not-load-type-sometype to use outdated code. I was thinking to rebuild the c# file using Visual Studio and/or the entire project. However, I am completely new to C# and asp, and was wondering can give me some suggestions if this may fix the problem and/or if there is an possible alternate solution. Error message Parser Error Message: Could not load type 'Inventory1.Global'. Source Error: <%@ Application Codebehind="Global.asax.cs" Inherits="Inventory1.Global" %> Entire Global.asax contents: <%@ Application Codebehind="Global.asax.cs" Inherits="Inventory1.Global" %> Many thanks in advance! c# asp.net global-asax share|improve this question edited Feb 26 '13 at 1:05 webaware 1,8801226 asked Feb 25 '13 at 16:10 AnchovyLegend 3,1871864131 Don't expect us to magically solve your problems by providing only two lines of code that does't mean anything to us more than they do to you!.. Please explain your problem in more detail.. Why are you inheriting Inventory1.Global class for the global.asax ? Do you know anything about global.asax and how it is formed? is there anything else in that file? what are the contents of the Global object? –Kemal Emin Feb 25 '13 at 16:16 1 As you figured it out, you seem to be missing the Invento