Global.asax not firing for .aspx pages in IIS7

前端 未结 2 1797
旧巷少年郎
旧巷少年郎 2020-12-16 07:00

We run a link redirection service which can handle links thrown at it in various formats. One of these formats is to append the destination URL to the end of the link, for e

相关标签:
2条回答
  • 2020-12-16 07:13

    In my case, I was publish my site in production and I miss copy to server App_global.asax.compiled file. For this reason was not fire the Events inside Global.asax.

    Hope anyelse help this tips, I lost 8 hours seeking.

    0 讨论(0)
  • 2020-12-16 07:20

    IIS 7 Solution

    The easy solution in IIS 7 is to add a setting in your web.config file to tell IIS to process all requests through your Global.asax events. Just add or change this section in your web.config to enable requests:

    <system.webServer>
      <modules runAllManagedModulesForAllRequests="true" />
    </system.webServer>
    
    0 讨论(0)
提交回复
热议问题