更新时间:2022-03-01 20:28:25
帅哥:)
自2008年10月以来,我一直面临着这个问题,但是最终我明白了为什么吗?与其添加我上面在问题中添加的模块,不如使用针对IIS7的以下新模块语法(哥达迪使用IIS7进行Windows托管)
I was facing this problem since last October 2008, but finally I got this why? Instead of adding modules like I have added above in my question, use the following new module syntax made for IIS7 (godaddy is using IIS7 for windows hosting)
<configuration>
<system.webServer>
<modules>
<add name="Header" type="Contoso.ShoppingCart.Header"/>
</modules>
</system.webServer>
</configuration>
将所有模块放在这里,您就完成了!很好,很完美!
Place all your modules under here and you're done! It's nice and works perfect!
"@ Jon Skeet"不需要模块的名称空间,即使没有名称空间,您也可以使用它!
And "@Jon Skeet" there is no need to have namespace for modules, even without namespace you can get it work!
请在此处详细了解此标签 http://www.iis.net/ConfigReference/system.webServer/modules
Do read more about this tag here http://www.iis.net/ConfigReference/system.webServer/modules