The Asp.net web application I am working on (seemingly)randomly started to error this morning. I have tried all day to fix it but have not managed to make any progress.
The error show within visual studio is as follows.
"csc.exe" exited with code -532462766. ReportLogProject".
When I debug, the error shown in the browser is
"Could not load type 'ReportLogProject.Global'."
"<%@ Application Codebehind="Global.asax.cs"
Inherits="ReportLogProject.Global" Language="C#" %>"
I have tried rebuilding, re-installing compiler packages etc. but nothing has worked.
Any help would be much appreciated.
Edit. Global.asax.cs and Globsal.asac code added below.
namespace ReportLogProject
{
public class MvcApplication : System.Web.HttpApplication
{
protected void Application_Start()
{
AreaRegistration.RegisterAllAreas();
FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
RouteConfig.RegisterRoutes(RouteTable.Routes);
BundleConfig.RegisterBundles(BundleTable.Bundles);
}
}
}
Global Asax:
<%@ Application Codebehind="Global.asax.cs" Inherits="ReportLogProject.Global" Language="C#" %>