问题:在Application_BeginRequest添加防止跨站点注入的过滤代码,VS2005编译成DLL发布后发现代码不会被执行:

环境:windows server 2008 r2 x64位  + IIS 7

解决:在web.config中添加以下属性,问题解决。

<system.webServer>
  <modules runAllManagedModulesForAllRequests="true">
  </modules>
</system.webServer>

相关文章:

  • 2021-09-09
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-13
  • 2022-12-23
猜你喜欢
  • 2021-12-21
  • 2022-12-23
  • 2021-07-19
  • 2021-06-15
  • 2022-02-02
  • 2021-10-27
  • 2022-12-23
相关资源
相似解决方案