遇到 Error creating the Web Proxy specified in the 'system.net/defaultProxy' configuration section的解決辦法


遇到 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, 然后重啟,問題解決。

-


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM