Parse Error In Global.asax
duh! 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 Any help would be appreciated. share|improve this answer answered Oct 14 '11 at 14:57 Giles Roberts 2,86522639 add a comment| up vote 0 down vote For me, I had a DLL included with my project that http://iipseconline.com/parse-error/php-parse-error-parse-error-unexpected-t-constant-encapsed-string.html
Parser Error on Global.asax is driving me crazy! It has been in production for months without glitches until yesterday. I had
and it worked. –Nanu May 13 '13 at 20:42 1 For me, the problem was that i had accidently select x86 as active platform, and for this configuration the project The reason was that I was changing a file.aspx.c and had to do a clean rebuild. I think this is a severe bug in vs 2003.
If this doesn't work and you are using local IIS, try removing the site in IIS Manager and recreating it manually. Even though they displayed the correct .net version, I changed it to a different version, clicked apply, I then changed the setting to the correct version and again clicked apply than After that it worked. Nothing worked and the error didn't go away.
Please review the following specific parse error details and modify your source file appropriately. Fixed my problem, my application was set to use bin\Debug, changing it to bin resolved it. Because it was not included visual studio compiled it anyway without issues. http://stackoverflow.com/questions/11596352/parser-error-server-error-in-application Left by tfisher on Jul 12, 2009 2:39 PM # re: You may receive the error "Parser Error Message: Could not load type 'WebApplication1.Global'." when browsing an asp.net pag I solved
A missing Pages section in Views\Web.config could also be at fault. Strange error! –Sune Rievers Dec 2 '10 at 9:18 4 +1 Me too. Left by SA on Mar 18, 2008 6:52 AM # re: You may receive the error "Parser Error Message: Could not load type 'WebApplication1.Global'." when browsing an asp.net pag Still i share|improve this answer answered Dec 15 '15 at 14:29 Diego Merchán Salinas 1 add a comment| up vote 0 down vote I was learning from a video resource and ran into
share|improve this answer answered Jun 13 '11 at 18:27 Manish Jain 4,13111721 This was my problem. http://forums.asp.net/t/1806766.aspx?Help+Parser+Error+on+Global+asax+is+driving+me+crazy+ So I closed both Visual Studio and opened only one instance and It works fine now! Left by Mau.NET on Jun 14, 2006 11:09 AM # Ensure that output Path should be \bin not \bin\Debug in web applications. Not the answer you're looking for?
To fix this issue open the project you wish to build and go to the web sites properties (Project menu) Create the virtual directory for the project. navigate here See more: ASP.NET Visual-Studio hi, I am using asp.net MVC3 and visual studio 2010. Why are planets not crushed by gravity? Otherwise the demo would be a disaster... –Mariusz Ignatowicz Dec 7 '14 at 3:38 this resolved my issue –zish May 1 '15 at 10:01 Thanks for this!
If unchecked, it is not always the most obvious location. Left by Bob Pope on Jul 25, 2006 5:24 PM # re: You may receive the error "Parser Error Message: Could not load type 'WebApplication1.Global'." when browsing an asp.net page I The assemblies were corrupted by the FTP client I used to upload the files to a hosted environmet. Check This Out The only thing that worked was deleting the .sln file, creating a new one, and adding the projects back in one by one. ¯\_(ツ)_/¯ - Programming - ¯\_(ツ)_/¯ share|improve this answer
But after uploading in main server . If you haven't moved it try a Clean and then Rebuild of the Project in Visual Studio using the context Menu on the Web project. What does the image on the back of the LotR discs represent?
ASP.net is set to 2.0 in IIS.
Then the site worked and so did further publishes to the new server. Thanks Left by Carlos gomez on Feb 13, 2006 7:34 PM # re: You may receive the error "Parser Error Message: Could not load type 'WebApplication1.Global'." when browsing an asp.net page Also do a clean and rebuild - should fix the problem share|improve this answer answered Jul 27 '12 at 6:31 Peter Munnings 2,0151735 4 Modifying global.asax didn't do anything for Any help would be appreciated.
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 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! Forch Left by Forch on Jun 10, 2006 7:09 PM # re: You may receive the error "Parser Error Message: Could not load type 'WebApplication1.Global'." when browsing an asp.net page Hmmm...tried this contact form share|improve this answer answered Jun 10 '13 at 17:50 ekimpl 756 This was the case for me –Joe Philllips Jan 7 '14 at 19:57 add a comment| up vote
how to fix this? http://support.microsoft.com/kb/320268/en-us Left by Brenda on Nov 13, 2006 7:59 PM # re: You may receive the error "Parser Error Message: Could not load type 'WebApplication1.Global'." when browsing an asp.net page I Deleted the dll file with the same name of your project.e.g Example.dll4. It worked for me.
Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items 2 posts, 0 answered Close Developer network Blogs Documentation Forums Ideas and Feedback Portal Videos