[SharePoint 2010] 在SharePoint 2010使用Http Module

摘要:[SharePoint 2010] 在SharePoint 2010使用Http Module

今天在SharePoint 2010上開發Http Module時,發現怎麼都掛不上去
找了一下,發現.. 在IIS 7上面要使用Http Module,需要將他掛在<system.webServer>底下

參考如下..

以前是加在<system.web>:

<system.web>
  <httpModules
    <add name="CksEbeModule" type="CKS.EBE.BlogHttpModule, CKS.EBE, Version=0.1.0.0, Culture=neutral, PublicKeyToken=3e8b700c069fb747" />
    </httpModules>
</system.web>

IIS 7之後要放在<system.webServer>:

<system.webServer>
  <modules>
    <add name="CksEbeModule" type="CKS.EBE.BlogHttpModule, CKS.EBE, Version=0.1.0.0, Culture=neutral, PublicKeyToken=3e8b700c069fb747" />
  </modules>
</system.webServer>


參考文章:
Http Module not working on Sharepoint 2010
HttpModules problems and friendly urls in SharePoint 2010