Why can't my host (softsyshosting.com) support BeginRequest and EndRequest event handlers?

后端 未结 2 966
野性不改
野性不改 2021-01-12 01:00

I heard good things about Softsys Hosting and so I decided to move my ASP.NET MVC solution over to them. But it would not run on them. I was able to pinpoint the problem t

2条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-12 01:45

    Looks to me like you went from IIS 6 or IIS 7 Classic mode to IIS 7 Integrated mode. In IIS 7 integrated mode, the Request processing was decoupled from application start. This article explains the why's and wherefores.

    To fix it, you'll need to move your code to Application_BeginRequest instead.

提交回复
热议问题