So Bluetube Interactive has recently been doing a lot of Umbraco projects, rolling out several new sites on the platform. As a method of speeding development, all of our projects leverage Injection frameworks and our framework of choice for .NET is NInject. However, due Umbraco and NInject both want to extend the Global.asax, which isn't possible. So what is a developer to do?
The answer is surprisingly simple. Although Umbraco does in fact extend Global.asax in its own class, it turns out it does not have a significant use... or at least one not significant enough to prevent us from wanting to use our Injection framework of choice.
In the bin folder, find a remove the following file:
Having issue with App_Browsers too? It seems Umbraco inherits from that as well.
Both can be safely removed and at least to this point, we have not seen a negative impact.
Also, remmber with NInject you'll want to inherit from Ninject.Web.UserControlBase, not from WebControlBase.
Bluetube Interactive is a cutting edge digital agency that designs and builds native mobile, mobile web, tablet, social, and presence solutions. You can find out more about Bluetube Interactive at www.bluetubeinteractive.com