2017-08-23 7 views
-1

IISで設定されているプロジェクトが1つあります。しかし、実行しようとしているときにエラーが発生するasp.net mvc5 HTTPエラー403.14 - 禁止Webサーバーがこのディレクトリの内容を一覧表示しないように設定されています

HTTPエラー403.14 - 禁止Webサーバーは、このディレクトリの内容を一覧表示しないように設定されています。

このエラーを解決するには、sectionのweb.configにコードを記述してください。

<configuration> 
<system.webServer> 
     <directoryBrowse enabled="true" /> 
    </system.webServer> 
</configuration> 

よう

ありがとうすべてのソリューションをお願いします。

答えて

0

この問題は、Webサイトでディレクトリブラウズ機能が有効になっておらず、既定のドキュメントが構成されていないために発生します。この問題を解決するには、次の方法のいずれかを使用します。 方法1:

Start IIS Manager. To do this, click Start, click Run, type inetmgr.exe, and then click OK. 
In IIS Manager, expand server name, expand Web sites, and then click the website that you want to modify. 
In the Features view, double-click Directory Browsing. 
In the Actions pane, click Enable. 

方法2:次の手順を実行し、この問題を解決するにはIISでのディレクトリの参照機能(推奨) を有効に既定のドキュメントを追加します。 は、この問題を解決する、次の手順に従います。

Start IIS Manager. To do this, click Start, click Run, type inetmgr.exe, and then click OK. 
In IIS Manager, expand server name, expand Web sites, and then click the website that you want to modify. 
In the Features view, double-click Default Document. 
In the Actions pane, click Enable. 
In the File Name box, type the name of the default document, and then click OK. 

方法3:このメソッドは、彼らがIIS Expressを使用問題が発生するWeb開発者のためであるIIS Expressの 注ディレクトリの参照機能を有効にします。

これを行うには、次の手順を実行します

Open a command prompt, and then go to the IIS Express folder on your computer. For example, go to the following folder in a command prompt: 

C:\Program Files\IIS Express 

Type the following command, and then press Enter: appcmd set config /section:directoryBrowse /enabled:true 
関連する問題