我只是說這對我的web.config:允許「localhost」的在iisexpress運行時的web.config包含IPSECURITY權限
<security>
<ipSecurity allowUnlisted="false">
<!-- The following IP addresses are granted access, all else denied -->
<add allowed="true" ipAddress="123.123.105.0" subnetMask="255.255.255.0" />
<add allowed="true" ipAddress="123.123.100.0" subnetMask="255.255.255.0" />
</ipSecurity>
</security>
工程完全按照預期,僅在某些IP範圍。但是,現在當我在本地主機上通過iisExpress在Visual Studio中測試它時,它當然會給我帶來問題。這裏是500.19錯誤我收到:
This configuration section cannot be used at this path. This happens when the section is locked at a parent level. Locking is either by default (overrideModeDefault="Deny"), or set explicitly by a location tag with overrideMode="Deny" or the legacy allowOverride="false".
我已經安裝IP安全對我的服務面板LOCALMACHINE,這樣就啓用了,我已經用在IPSECURITY塊選項周圍monkeyed如添加的「localhost」作爲一個domainName值 - 但唉,沒有運氣。 ....幫助我StackOverflow,你是我唯一的希望! ;)
我也有這個問題,似乎無法找到解決的辦法 – Xoundboy