Parser Error Message: Could not load type 'sometype'

AnchovyLegend picture AnchovyLegend · Feb 25, 2013 · Viewed 68.9k times · Source

I am experiencing an error that I am unable to resolve for some time now. I was wondering if someone can help identify the cause of this error? I am completely new to asp / asax. After some research, I think that the error I am getting is due to the web application trying to use outdated code. I was thinking to rebuild the c# file using Visual Studio and/or the entire project. However, I am completely new to C# and asp, and was wondering can give me some suggestions if this may fix the problem and/or if there is an possible alternate solution.

Error message

Parser Error Message: Could not load type 'Inventory1.Global'.

Source Error:   <%@ Application Codebehind="Global.asax.cs" Inherits="Inventory1.Global" %>

Entire Global.asax contents:

<%@ Application Codebehind="Global.asax.cs" Inherits="Inventory1.Global" %>

Answer

Taha Rehman Siddiqui picture Taha Rehman Siddiqui · Jun 3, 2013

Try replacing CodeBehind with CodeFile