I used Visual Studio 2008 to publish my asp.net site. When I open the site on the server (Windows 2008 server), I noticed that the code in global.asax is not running. The body of My Global.asax is like:
<%@ Application Language="C#" %>
<script runat="server">
protected void Application_Start()
{
}
protected void Application_End(object sender, EventArgs e)
{
}
</script>
There is a file called App_global.asax.dll in the compiled websites folder, but that doesn't seem to help.
Is there a configuration option that I am missing? Removing App_global.asax.dll and using the global.asax source file with a pre-compiled site work fine.
source
share