與godaddy.com 但是,當我加入的HttpModule在我的web.config如下注冊(在ASP.NET 2.0(C#)開發):在我的網站中添加HttpModule時出現「500 Internal Server Error」?
<httpModules>
<add type="WwwSubDomainModule" name="WwwSubDomainModule" />
</httpModules>
,但它給了我「 500內部服務器錯誤」。當我刪除上面的標籤,然後我的網站工作正常。任何人都可以猜測爲什麼它造成這個問題
我用這裏給出的方法:http://blog.madskristensen.dk/post/Add-or-remove-the-www-sub-domain.aspx – Prashant 2009-02-21 16:41:31
它包含一個不在名稱空間中的類型。它是否仍然不在您自己的代碼中的名稱空間中? (說實話,這聽起來不是一個好主意,我把它放在一個命名空間中,並將完全限定的名稱放在web.config中。) – 2009-02-21 16:52:01