How can I get the SPWebApplication for the current request from a H开发者_开发百科ttpModule?
try constructing the SPSite yourself
using(SPSite site = new SPSite(app.Context.Request.Url.ToString())) { //might need to trim the url
site.WebApplication
}
Tried SPContext.Current.Site.WebApplication
?
精彩评论