私は非常に奇妙な問題を抱えています。アプリケーションにIIS7.0統合モードを使用しています。(プールはASP 2.0に統合されています)
www.xyz.com/MainPage.aspxと入力すると、正常に機能しています。しかし、私が単純なwww.xyz.comを使用した場合、それは機能しません。
私はいつもこのエラーが発生します
The resource cannot be found.
Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.
Requested URL: /intranet/default.aspx
デフォルトのドキュメントをMainPage.aspxにマップしましたが、まだ機能していません...ルートにdefault.aspxページがありません。Mainpage.aspxと私はそれを変更することはできません...
私のweb.configは次のようになります(その一部のみ:):
<configuration>
<system.webServer>
<defaultDocument>
<files>
<clear />
<add value="MainPage.aspx" />
</files>
</defaultDocument>
</system.webServer>
</configuration>