Fix for ASP.Net parser error message: Could not load type ‘xxxxx.Global’

In one of my recent projects I stumbled about one annoying behavior of ASP.Net Projects.

For some reasons I got the meaningful error message :

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 'WebService.Global'.

Source Error:

Line 1:  <%@ Application Codebehind="Global.asax.cs" Inherits="WebService.Global" Language="C#" %>

Source File: /global.asax    Line: 1

In my case I solved the problem in changing the build output path from  bin\x68\Debug to : bin

hope this helps anyone

have fun

Mario

2 thoughts on “Fix for ASP.Net parser error message: Could not load type ‘xxxxx.Global’”

  1. Output path was already bin\ when i tried your solution…

    But i still get the error when building my web application.

    Tim

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.