且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

" 500内部服务器错误"在我的网站添加的HttpModule是什么时候?

更新时间:2022-06-25 08:57:35

明白了球员:)

我正面临2008年以来去年十月这个问题,但最后我得到了这是为什么呢?
相反,就像我在我的问题上面添加添加模块,使用IIS7(托管GoDaddy的窗户用IIS7)提出了以下新的模块语法

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!

和@乔恩双向飞碟也没有必要对模块的命名空间,即使没有命名空间,你可以得到它的工作!

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