none of the solutions worked for me.
What is the correct way of deploying a website having a global.asax file?
Could it be because of the virtualpath and filedep found below in the compiled version of global.asax file?
this paths are related to my local and not related to my deployment server. So why get these paths deployed this way?
there is no path as: "/proj/global.asax" in deployment server. proj is the name of the local folder where I work for the project.
<?xml version="1.0" encoding="utf-8"?>
<preserve resultType="8" virtualPath="/proj/global.asax" hash="ffffffffe8c669c9" filehash="29d0de3dd91a" flags="150000" assembly="App_global.asax" type="ASP.global_asax">
<filedeps>
<filedep name="/proj/global.asax" />
</filedeps>
</preserve>
-----
the code below yields :
ApplicationInstance: ASP.global_asax
protected void Page_Load(object sender, EventArgs e)
{
Response.Write("<br/>ApplicationInstance: " +
Context.ApplicationInstance.GetType().FullName);
}
it should not be so hard.