Home > Parse Error > Parse Error Global.asax

Parse Error Global.asax

General FAQ Ask a Question Bugs and Suggestions Article Help Forum Site Map Advertise with us About our Advertising Employment Opportunities About Us Ask a Question All Questions All Unanswered FAQ share|improve this answer answered Jul 21 '12 at 22:38 heads5150 4,58311730 None of this works for me, I am unable to compile my app with the Global.asax folder there. Took less then 10 minutes. share|improve this answer edited Feb 11 '15 at 15:46 answered Jan 31 '15 at 0:59 BenSmith 8,39932646 add a comment| up vote 1 down vote I've run across this issue a http://kiloubox.com/parse-error/parse-error-could-not-load-type-global-asax.html

Now double click your Global.asax file and see what the class name specified in your Global.asax.cs file is. What was originally selected was the "Use Visual Studio Development Server" with a Virtual path of "/" What's really puzzling to me is the fact that nothing else worked, I went the namespace and the assembly name alloted and also try physically changing the name of the folder created for the application, all of this should be same as the name in I tried many suggestions from many pages only to find out the problem was that I had the website set to the wrong version of .Net No matter how many re-compiles

Then click ok. Right click > convert to application. Good answer! –Bob Kaufman Jan 4 '11 at 15:51 3 yup this is the answer, please mark as answer! –Michael Sep 5 '12 at 19:03 4 I also got Also, as I mentioned the site worked fine on my computer just not on the webhost.

This simple step saved my JOB and my HOUSE from getting mortgaged! :D Left by nish on Oct 19, 2008 9:32 PM # re: You may receive the error "Parser Error AAA+BBB+CCC+DDD=ABCD Fill in the Minesweeper clues Output the Hebrew alphabet Glossy material rendering black, in a scene with environment and emission lighting Previous company name is ISIS, how to list on Browse other questions tagged .net asp.net-mvc or ask your own question. Email: (never displayed)*Email is optional, but if you enter one at least make sure it is valid. (will show your gravatar) Comment: *I do want to hear your thoughts.

Left by James on Apr 08, 2006 1:16 AM # re: You may receive the error "Parser Error Message: Could not load type 'WebApplication1.Global'." when browsing an asp.net page I followed Source:- "Could not load type [Namespace].Global" causing me grief share|improve this answer answered May 18 '13 at 5:40 Sain Pradeep 2,0971920 My god, that was #@[email protected]# frustrating. TL;DR: In the project properties, in the web tab, under Servers, Select Use Local IIS Web Server. And I've tried a number of things, and by "things" I mean "wild guesses".

The global.asax apparently must sit in the same namespace as web project. Digital Alarm Clock Is a rebuild my only option with blue smoke on startup? Do these physical parameters seem plausible? Any help would be appreciated.

We recently moved to MVC and had to change it to Web Application. his comment is here Note2: When compiling from the vs prompt with csc it compiles o.k. Studio is VS 2005. How can I get this thing to work, I am finding this MVC stuff much problematic but invested a long time developing the app.

Also unfortunately, it doesn't really fix the issue in the way I was hoping, but if you're at your wit's end, this might get you running again. this contact form Does "when ~ dies, deal n damage to all players/creatures" have a name? Restarted VS which prompted me to remap the folders correctly and the issue went away. ‹ Previous Thread|Next Thread › This site is managed for Microsoft by Neudesic, LLC. | © Do you need your password?

Parser Error on Global.asax is driving me crazy! Insults are not welcome. Thanks, S Left by sarchamb on Oct 31, 2006 4:09 PM # re: You may receive the error "Parser Error Message: Could not load type 'WebApplication1.Global'." when browsing an asp.net page have a peek here sort command : -g versus -n flag more hot questions question feed lang-cs about us tour help blog chat data legal privacy policy work here advertising info mobile contact us feedback

Join them; it only takes a minute: Sign up “Could not load type [Namespace].Global” causing me grief up vote 77 down vote favorite 18 In my .Net 2.0 Asp.net WebForms app, asked 6 years ago viewed 83037 times active 6 months ago Get the weekly newsletter! Try to: Right click on the project and select Clean, then right click on it again and select Rebuild and run the project to see if it worked.

May 23, 2012 12:38 PM|degt|LINK I was deploying to a virtual directory that *is* marked as an IIS application.

c# asp.net .net global-asax parse-error share|improve this question asked May 18 '13 at 5:34 Raheel Khan 4,81084199 add a comment| 3 Answers 3 active oldest votes up vote 11 down vote See more: ASP.NET Visual-Studio hi, I am using asp.net MVC3 and visual studio 2010. I had to close one and then it was resolved. –lvmeijer Jun 5 '15 at 14:28 2 You can also try deleting bin/obj folders in your project. –arni Sep 2 Left by Bapuji on Dec 04, 2005 3:42 PM # re: You may receive the error "Parser Error Message: Could not load type 'WebApplication1.Global'." when browsing an asp.net page If it

share|improve this answer edited Aug 18 at 13:06 mortb 2,2732622 answered Dec 10 '14 at 20:55 jayt.dev 4171924 add a comment| up vote 0 down vote None of the other answers This seems to be because the MyNamespace namespace (defined in the code behind file Global.asax.cs) is not seen by the compiler in the Global.asax file (does not show in R# intellisence..). Then make sure all projects and getting built, and this won't be a problem. http://kiloubox.com/parse-error/parse-error-syntax-error-unexpected-t-global-expecting-t-function.html Why did they bring C3PO to Jabba's palace and other dangerous missions?

if you're developing in .NET 2.0 and it's set to 1.1 you'll get this message Left by spamcannon on Jan 16, 2006 10:18 PM # re: You may receive the error In both cases, make sure you check the settings both for debug and release mode - otherwise you'll get it working on your machine but not when you deploy it! share|improve this answer answered Nov 28 '11 at 21:51 Sergey 12112 add a comment| up vote 1 down vote If you rebuild or change a project and move over files from Left by ReedSmith on Jul 05, 2006 11:42 AM # re: You may receive the error "Parser Error Message: Could not load type 'WebApplication1.Global'." when browsing an asp.net page Yeah ReedSmith

Help! Find and open the file Global (maybe you'll find 2 files, open that dont have ".asax.cs" extension), and edit the line of error with correct path. I am using git along with Source Tree for version control. what should I do to resolve this?

share|improve this answer answered Oct 21 '09 at 18:31 Riaan Engelbrecht 814277 Thanks A lot!!!!! –Eslam Badawy Aug 12 '15 at 21:56 add a comment| up vote 9 down The reason was that I was changing a file.aspx.c and had to do a clean rebuild. Money transfer scam What game is this picture showing a character wearing a red bird costume from? So, before you lose too much sleep over this, try changing the IIS port number that is currently used to run the web project.

Included the web application in the build by ticking the 'Build' check-box. How do I publish on the dept server if I cannot find the server there? Ah, so maybe this is the real issue then. :) Brock Allen | http://brockallen.com DevelopMentor | http://www.develop.com thinktecture | http://www.thinktecture.com/ Reply degt Member 64 Points 202 Posts Re: Help!