如果您在IIS 7上運行,把模塊:
<configuration>
<system.webServer>
<modules>
<add name="MinimizeModule" type="ClipperHouse.UrlMinimizer.MinimizeModule" />
</modules>
</system.webServer>
</configuration>
如果您在卡西尼(Visual Studio的集成微型網絡服務器)上運行,把該模塊位於:
<configuration>
<system.web>
<httpModules>
<add name="MinimizeModule" type="ClipperHouse.UrlMinimizer.MinimizeModule" />
</system.web>
</configuration>
如果您爲卡西尼位置提供IIS,它將崩潰。
如果你給它的IIS位置,卡西尼會崩潰。
每當我部署,我必須確保不部署web.config
。我還包括筆記web.config
:
<system.web>
<!--The Cassini location to add modules (comment out for IIS)-->
<httpModules>
<!--WARNING: IIS will crash if you leave this in here.
IISBUG: IIS doesn't support system.web/httpModules,
and Cassini doesn't support system.webServer/modules
-->
<!--Comment out for IIS-->
<add name="PerformanceHttpModule" type="DummyPlaceholder.PerformanceHttpModule"/>
</httpModules>
</system.web>
<system.webServer>
<!--The IIS7 location to add modules (comment out for Cassini)
<modules runAllManagedModulesForAllRequests="true">
<!--IIS7 will crash if you present a system.web httpModules. -->
<remove name="PerformanceHttpModule" />
<add name="PerformanceHttpModule" type="DummyPlaceholder.PerformanceHttpModule"/>
</modules>
</system.webServer>
IIS的左手不知道什麼卡西尼的右手在做什麼 - 他們都搞砸了。
你可以進一步擴展嗎?我不確定你是什麼意思。 – 2009-09-07 21:30:33