Home > Could Not > Parser Error Global Asax Line 1

Parser Error Global Asax Line 1

Contents

This is actually more relevant than most think... 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 Technology Life / Arts Culture / Recreation This, however, did the trick. This could potentially have been a solution. http://back2cloud.com/could-not/parser-error-global-asax.php

I think somewhere I must have been missing some files. 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 But in all cases, the error is simply saying that it can't find the type specified in global.asax because it can't build it. Just thinking it'd be easier to troubleshoot locally rather than whatever server you're trying to deploy to. http://stackoverflow.com/questions/11682216/parser-error-message-could-not-load-type-in-global-asax

<%@ Application Codebehind="global.asax.cs" Inherits=" Mvcapplication" Language="c#" %>

Permalink Posted 30-Apr-12 18:57pm aspnet -i39.7K Comments Miriam Weiss 1-May-12 16:08pm Can you explain to me why the CodeFile versus the CodeBehind? Please review the following specific parse error details and modify your source file appropriately. But my situation is unique. (No, really! ;-) ) I could use your help.

Munnings –dada Apr 26 at 8:40 this did the trick .. Carrying Metal gifts to USA (elephant, eagle & peacock) for my friends more hot questions question feed lang-cs about us tour help blog chat data legal privacy policy work here advertising 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 <%@ Application Codebehind="global.asax.cs" Inherits=" Webapiapplication" Language="c#" %> Parser Error Description: An error occurred during the parsing of a resource required to service this request.

Linux questions C# questions ASP.NET questions SQL questions fabric questions discussionsforums All Message Boards... An Error Occurred During The Parsing Of A Resource Required To Service This Request Asp Net share|improve this answer answered Nov 18 '11 at 21:02 Paulo 7111 add a comment| up vote 5 down vote I experienced the exact same problem a couple of days ago - I am using git along with Source Tree for version control. share|improve this answer answered Jan 13 '11 at 10:47 teedyay 15.4k115570 I was required to combine this answer with the answer from @brockstaylor below to solve this problem on

asked 3 years ago viewed 20142 times active 1 year ago Linked 77 “Could not load type [Namespace].Global” causing me grief Related 2Global.asax parser errors when deploying MVC 1 application to Could Not Load Type Global How to improve this plot? When I ran the application I got the same error "Line 1: <% .....". share|improve this answer answered Feb 4 at 20:43 chill182 363517 add a comment| up vote 1 down vote My issue was solved when I converted in IIS the physical folder that

An Error Occurred During The Parsing Of A Resource Required To Service This Request Asp Net

Changed it for the App pool from 2.0 to 4.0 and it worked fine, no need to change the CodeBehind to CodeFile. her latest blog The reason was that I was changing a file.aspx.c and had to do a clean rebuild. <%@ Application Codebehind="global.asax.cs" Inherits=" Mvcapplication" Language="c#" %> share|improve this answer answered Jun 13 '11 at 18:27 Manish Jain 4,13111721 This was my problem. Global Asax Inherits Attribute This solved the issue for me.

Lord of Wings official page Contributor to Panama Vibes Reply BrockAllen All-Star 20376 Points 6502 Posts ASPInsidersMVP Re: Help! his comment is here Build failed. Are there any circumstances when the article 'a' is used before the word 'answer'? Movie about a board-game that asks the players touchy questions Why are planets not crushed by gravity? Parser Error Could Not Load Type Inherits

I searched else where and found a stackoverflow forum that suggests me to change the output directory to Bin. Parser Error Description: An error occurred during the parsing of a resource required to service this request. What is the main spoken language in Kiev: Ukrainian or Russian? http://back2cloud.com/could-not/parser-error-global-asax-cs.php 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

Lastly, the only change to my development systems has been windows updates (regular security updates) and I have tried the solution on systems without updates with the same results. Could Not Load Type Aspx I changed my FTP client and all is working as intended. It worked, but I would like to know why.

share|improve this answer answered Dec 29 '14 at 21:54 ObiwanBill 5111 add a comment| up vote 4 down vote The case is solved, but you may also get this error if

To fix this, right click your project title, in this case "TestMvcApplication" and click build. Fixed share|improve this answer answered Feb 10 '14 at 8:04 MilesDavies192 53657 3 Thank God I've stumbled upon this. You will see the attribute Inherits="nadeem.MvcApplication". Could Not Load Type C# All rights reserved.

Young Mar 23 '15 at 17:38 | show 4 more comments up vote 29 down vote Try modifying your global.asax file (simple add a space somewhere) and re-run. It's especially frustrating as it's right off the bat, and the error message holds no clue as to what might be the issue. Browse other questions tagged .net asp.net-mvc or ask your own question. http://back2cloud.com/could-not/parser-error-global-asax-file.php In it, you'll get: The week's top questions and answers Important community announcements Questions that need answers see an example newsletter By subscribing, you agree to the privacy policy and terms

Reduce function is not showing all the roots of a transcendental equation Bangalore to Tiruvannamalai : Even, asphalt road A word generalizing over inputs and outputs (of a system) How to 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 And because I was copying files from a .net 4.5 to a 4.0 I didn't comment out lines that are not needed in 4.0. Not the answer you're looking for?