Posted on 29/05/2015 13:06:51
Ok, after some serios debugging and messing around with my solution I found the following: when you create a custom Global.Asax with GlobalAsaxHandler calls as shown below the application fails to show the ItemTypes in the Admin section and when you create a new ItemType the application fails to save the XML in the ItemTypeDefinition table.
public class Global : HttpApplication
{
protected void Application_Start(object sender, EventArgs e)
{
GlobalAsaxHandler.Application_Start(sender, e);
}
protected void Session_Start(object sender, EventArgs e)
{
GlobalAsaxHandler.Session_Start(sender, e);
}
protected void Application_BeginRequest(object sender, EventArgs e)
{
GlobalAsaxHandler.Application_BeginRequest(sender, e);
}
protected void Application_AuthenticateRequest(object sender, EventArgs e)
{
GlobalAsaxHandler.Application_AuthenticateRequest(sender, e);
}
protected void Application_Error(object sender, EventArgs e)
{
GlobalAsaxHandler.Application_Error(sender, e);
}
protected void Session_End(object sender, EventArgs e)
{
GlobalAsaxHandler.Session_End(sender, e);
}
protected void Application_End(object sender, EventArgs e)
{
GlobalAsaxHandler.Application_End(sender, e);
}
}
We need to add extra functionality to the Session Start of the application and thus need a custom Global.asax. When I remove our custom global.asax and replace it with the normal one everything works, without changing Files folders or whatsoever.
My question is: is there any way to accomplish our desired behaviour (for ItemTypes and in the Global.asax)? And is the problem described above registered as a bug?
Thanks!
Tom