iMIS Global.asax

We would like to override the iMIS Global.asax (which is currently compiled and sitting in the bin folder).

Is it possible to simply add a Global.asax file to the Net folder and inherit the iMIS global class? (Asi.Webroot.Global).

We're trying this but finding that it isn't loading our code -- it keeps loading the compiled Global.asax.

Any help or insight is greatly appreciated.

Thanks,
Colin

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Another Option is to create a base page

When I had this issue a couple of years ago with my error handler, I didn't find a way to add to the global.asax.  I decided to just override page and have all of my pages inherit from my new page.  That way I could put my error handler there.

public class SBCPage : System.Web.UI.Page {

public void Page_Error(object sender, EventArgs e) { ... }

}

 
 

Doesn't seem possible

(I'm a colleague of Colin, the creator of this thread)

We have resigned to the fact that extending the global.asax isn't going to be possible.

The reason we so desperately need to be able to extend the global.asax is because we would like to use .NET page output caching and vary by a custom parameter. Unfortunately, .NET is designed in such a way that the GetVaryByCustomString() method can only be overridden inside the global.asax.

Bummer...