Hi,
I have a client whose ASP.NET website intermittently doesn't display aspx pages. When the pages don't display they get a
"The type 'Global' is defined in an assembly that is not referenced..."
error message.
They've spoken to their web host who says that the problem is fixed and then from time to time it reoccurs.
I've noticed that the Global.asax is located in the root dir and contains the line:
<%@ Application Codebehind="Global.asax.cs" Inherits="Global" %>
But the Global.asax.cs file is located in the App_Code sub-directory.
Could the intermittent errors with loading the aspx pages be caused by the sub-directory not being listed within the location of the Global.asax.cs file? ie. so the line in the Global.asax would become:
<%@ Application Codebehind="~/App_Code/Global.asax.cs" Inherits="Global" %>
Any help or suggestions would be much appreciated!