遇到 Error creating the Web Proxy specified in the 'system.net/defaultProxy' configuration section的解決辦法
一、程序有可能用了兼容性設置(程序圖標-右鍵-屬性-兼容性),兼容性設置里的系統低於WIN 2000。
二、代理問題
用記事本編輯*.EXE.config,在“<system.net>”節點加入
<defaultProxy>
<proxy usesystemdefault="False" />
</defaultProxy>
完整的(微信:SissWxpayClientRequest.exe.config , 支付寶:AliV2CR.exe.config):
<?xml version="1.0"?> <configuration> <system.net> <settings> <httpWebRequest useUnsafeHeaderParsing="true"/> </settings> <defaultProxy> <proxy usesystemdefault="False" /> </defaultProxy> </system.net> <startup useLegacyV2RuntimeActivationPolicy="true"> <supportedRuntime version="v2.0.50727"/> <supportedRuntime version="v4.0"/> </startup> </configuration>
三、使用了與請求的協議不兼容的地址
netsh winsock reset, 然后重啟,問題解決。
-