Parser Error Global.asax.cs

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 'ProjectName.XXXXX'.
Source Error: Line 1: <%@ Application Codebehind="Global.asax.cs" Inherits="ProjectName.XXXXX" Language="C#" %>
Source File: /global.asax Line: 1

Possible Solutions

The local web server is running different code than what is being worked on. Stop debugging if needed, clean and rebuild the solution and then try again. This usually solves the issue.