Application_Start is not firing in IIS

北城余情 提交于 2019-12-01 06:47:23

No idea if this is your situation, but in case it helps, this happened to me with the following conditions:

  • I am using Microsoft.Web.Infrastructure.DynamicModuleHelper
  • The IIS application pool is set to use Integrated Pipeline mode (it works ok with Classic)
  • I do not have a PreApplicationStartMethod defined.

(This arose because I was trying to use Ninject.Web 3.0 in a web forms application. It relies on WebActivator which is unsigned and so I can't use it easily with my signed assemblies. So I tried to call NinjectWebCommon.Start() from Application_Start() manually which works fine with the debug webserver but not with IIS in integrated mode.)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!