IP ベースの「クラウド サービス」に基づいて Webrole へのアクセスを制限したいと考えています。この記事には優れたドキュメントがありますが、それに従うと、デプロイ時にエラーが発生します。
私が得るエラーは次のとおりです。
Recycling (Role has encountered an error and has stopped. Application startup task failed with exit code 1
それは一部で間違っています
%windir%\system32\inetsrv\AppCmd.exe unlock config -section:system.webServer/security/ipSecurity
したがって、コマンドが間違っていると思います。オペレーティング システム Windows 2012でWebroleを実行しています。
web.config部分を追加するだけでは何も変わらず、機能しません
<system.webServer>
<security>
<!—Unlisted IP addresses are denied access–>
<ipSecurity allowUnlisted=”false”>
<!—The following IP addresses are granted access–>
<add allowed=”true” ipAddress=”192.168.100.1” subnetMask=”255.255.0.0″ />
<add allowed=”true” ipAddress=”192.168.100.2″ subnetMask=”255.255.0.0″ />
</ipSecurity>
</security>
</system.webServer>
私を助けることができる、これに関する経験のある人はいますか?