Webservice returns a Parser Error about Global.asax.cs

Posted: 2011-09-27 in .Net

Simple: Check your primary project’s outbuild build folder, for debug it should be bin\ not bin\debug\

 Basically whats happening is you are referencing either a) an old built file that references new code or b)the file doesn’t exist compared to where its  trying to start the web page.
This happens especially if you have updated your solution from 1.x to 2.x or newer.

Worse case delete your entire output folder and rebuild, check the files created compared to where the project is trying to look. This should confirm the above.


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” %>


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s