Take the tour ×  How can I get the SPWebApplication for the
current request from Init method in a HttpModule?  share|improve
this question add comment  3 Answers  Is SPContext.Current not
yet available at this time? You should be able to get it from
this. (SPContext.Current.Site.WebApplication from the top of my
head)  Be careful though as this will call into the SharePoint
object model for each incoming request, which will most likely
hit the database as well. This may wreak havoc on performance
and scalability.  share|improve this answer The Init method is
called only once per thread in the application pool. SPContext
is null at this stage. In my code Init method calls another
method OnStartup that does some initialization and does this
only once per AppDomain. –  Emilian BALANESCU Mar 28 '11 at
20:00 add comment  What about  var webApp = site.WebApplication;
I didn't have a reason to use this, so I don't know if it works,
it's just an ideea. Try it, hope it helps  share|improve this
answer This can work b