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

3 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

  2. Hello Tim,
    I tried that linked which u have mentioned in above comments . I went through with all steps but it didnt work for me..do you have any other option to sort out this problem…

Leave a Reply to Dheeraj Kumar Cancel reply

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