C# Http绑定上的代理

C# Http绑定上的代理,c#,asp.net,networking,proxy,web-config,C#,Asp.net,Networking,Proxy,Web Config,我有一个web应用程序连接一台使用代理服务器的机器上的web服务。internet explorer上的连接正常,如图所示 我的web.config是: <system.net> <defaultProxy> <proxy autoDetect="true" usesystemdefault="true"/> </defaultProxy> </system.net&g

我有一个web应用程序连接一台使用代理服务器的机器上的web服务。internet explorer上的连接正常,如图所示

我的web.config是:

    <system.net>
        <defaultProxy>
            <proxy autoDetect="true" usesystemdefault="true"/>
        </defaultProxy>
    </system.net>
   <system.serviceModel>


       <bindings>
         <basicHttpBinding>

            <binding name="ProcessSoap" closeTimeout="00:01:00" openTimeout="00:01:00"
               receiveTimeout="00:10:00" sendTimeout="00:01:00" allowCookies="false"

useDefaultWebProxy="true" hostNameComparisonMode="StrongWildcard"
               maxBufferSize="65536" maxBufferPoolSize="524288" maxReceivedMessageSize="65536"
               messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered"
                >
               <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
                  maxBytesPerRead="4096" maxNameTableCharCount="16384" />
               <security mode="None">

               </security>
            </binding>
         </basicHttpBinding>
      </bindings>
      <client>
         <endpoint address="http://www.serveraddressthatiwanttoconnect.com/services/WebService.asmx"
            binding="basicHttpBinding" bindingConfiguration="ProcessSoap"
        contract="PINAlmaServis.ProcessSoap" name="ProcessSoap" />
  </client>

我想使用系统代理设置,因为它可以随时更改。“kurumsalproxy”是本地网络上的机器名。我尝试了web.config上的所有可能的变体,但无法建立连接

有什么我错过的吗

我想使用系统代理设置

没有“系统”代理设置。每个用户都拥有个人代理配置。您可以创建具有代理配置的用户,并更改应用程序池标识以使用该帐户


更新:

我认为您不需要更改应用程序池标识,如果您仔细阅读此服务器故障线程

如果应用程序池标识为网络服务,则需要为系统帐户(本地系统、本地服务和网络服务)配置代理设置