Net Parser Error Could Not Load Type Global
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta could not load type aspx Discuss the workings and policies of this site About Us Learn <%@ application codebehind="global.asax.cs" inherits=" mvcapplication" language="c#" %> more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us <%@ application codebehind="global.asax.cs" inherits="" language="c#" %> 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 million programmers, just like
Parser Error Global.asax Line 1
you, helping each other. Join 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 an error occurred during the parsing of a resource required to service this request asp net 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 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.1k49187271 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. &ndash
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 could not load type c# developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask
Parser Error Could Not Load Type Inherits
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
Could Not Load Type 'web Api.web Api Application'
them; it only takes a minute: Sign up Could not load type 'XXX.Global' up vote 47 down vote favorite 4 Migrating a project from ASP.NET 1.1 to ASP.NET 2.0 and I keep hitting this error. I don't actually need http://stackoverflow.com/questions/1598829/parser-error-message-could-not-load-type-testmvcapplication-mvcapplication Global because I am not adding anything to it, but after I remove it I get more errors. asp.net visual-studio share|improve this question edited Feb 1 '12 at 7:50 famousgarkin 7,21122850 asked Sep 10 '08 at 13:13 Brian G 14.9k47105134 add a comment| 16 Answers 16 active oldest votes up vote 43 down vote accepted There are a few things you can try with this, seems to happen alot and the solution varies for everyone it seems. If you http://stackoverflow.com/questions/54001/could-not-load-type-xxx-global are still using the IIS virtual directory make sure its pointed to the correct directory and also check the ASP.NET version it is set to, make sure it is set to ASP.NET 2.0. Clear out your bin/debug/obj all of them. Do a Clean solution and then a Build Solution. Check your project file in a text editor and make sure where its looking for the global file is correct, sometimes it doesnt change the directory. Remove the global from the solution and add it back after saving and closing. make sure all the script tags in the ASPX file point to the correct one after. You can try running the Convert to Web Application tool, that redoes all of the code and project files. IIS Express is using the wrong root directory (see answer in VS 2012 launching app based on wrong path) Make sure you close VS after you try them. Those are some things I know to try. Hope one of them works for you. share|improve this answer edited Nov 18 '14 at 20:25 josh poley 4,14511220 answered Sep 10 '08 at 13:25 pete blair 1,36711514 1 Did any of these work for you? –Rob Stevenson-Leggett Oct 22 '08 at 12:51 1 yeah i have used those over time and one of them would usually resolve the issue. –pete blair Oct 24 '08 at 18:28 1 Removing and re-adding Global.asax
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 http://stackoverflow.com/questions/17657744/asp-net-could-not-load-type-webapplication1-global hiring developers or posting 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 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up ASP.NET could not load type 'WebApplication1.Global' up vote 0 down vote favorite I created a project (ASP.NET empty web application) WebApplication1. I also have Default.aspx/login.aspx/GoogleCallBack.aspx when I run the application, the could not error shows 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 'WebApplication1.Global'. Source Error: Line 1: <%@ Application Codebehind="Global.asax.cs" Inherits="WebApplication1.Global" Language="C#" %> Source File: /global.asax Line: 1 Does anyone know how to fix it ? thank you asp.net share|improve this question asked Jul 15 '13 at 15:18 user2460718 20210 could not load Recompile your project and check for errors. –SLaks Jul 15 '13 at 15:20 Hi Slaks, i did, the errors showed up the same as posted –user2460718 Jul 15 '13 at 15:32 No; look for compiler errors in the error list. –SLaks Jul 15 '13 at 15:36 the name "OpenAuth" does not exist in the current conext –user2460718 Jul 15 '13 at 17:14 You need to fix your compiler errors. –SLaks Jul 15 '13 at 17:15 | show 4 more comments 2 Answers 2 active oldest votes up vote 1 down vote Just Check Project -> Properties -> Web Project Url --- Click on (Create Virtual Directory)link => This will ask you to map to correct folder location say ok. This problem Occured when we move our project to different directory and IIS still refers to old directory. share|improve this answer edited May 15 '15 at 14:03 Skynet 3,37151738 answered May 15 '15 at 13:52 Hanmant Rachmale 272 add a comment| up vote 0 down vote Does your project have a "Global.asax.cs"? If so, does it compile? F5 is for "Debug." This is about building the solution. Ctrl+Shift+B would be the hot-key combination to build and look for compiler errors. share|improve this answer edited Jul 15 '13 at 15:51 answered Jul 15 '13 at 15:22 JB King 11.3k32444 yes, I have Global.asax.cs