PRB: ????????? ??? ???? ?? HTTP ???????? ????? ?? ?????? ?? ???? ??? ??????

???? ?????? ???? ??????
???? ID: 318140 - ?? ???????? ?? ?????? ??? ?? ?? ???? ???? ???? ??.
??? ?? ??????? ???? | ??? ?? ??????? ????

?? ????? ??

?????

??? ?????????????? ????????? ????? ????????? ???????? ?? ?? ???? ??? ????????:

System.Net

?? ?? ?? ????? ?????? ??????? ?? ??? ???? ?? HTTP ???????? ????? ?? ?????? ?? ?? ???? ?? ??? ???? ??? ???? ?? ?????????? ?????? ?????:
?????????? ??????? ??? ???? ??? ??: ?????? ??? ?? ???? ???? ?? ????

????

???? HTTP ???????? ?????, ??? ???? ?? ??? ????? ?? ?? .??? ?????? ?? ???? ???????? ???????? ????????? ???? ???? ??? ???

????????

?? ?????? ?? ?? ???? ?? ???, ??????? ???????? ???????. ???????????? ???????? ???? ?? ??????? ???????

???? ???????

???????? ?????? ??? ?????????? ??? Machine.config ?????:

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

				
??? ???????? ?????? ???????? ????? ???????? ??? ?? ????? ???? ????????, usessystemdefault ?? false ??? ????, ?? ???? ??? ?????? ??? ?? ?? ???????? ????? ???? ???? ?? ??? ?????? ??? ?? ?? ???????? ????? ???, ?? Machine.config ?? ????? ???? ?? Web.config ?????, ?? ????????? ?? ???? ????? ????????? ?????

????????? ???? ?? ??? ???????? ?????, Machine.config ?? Web.config ????? ???????? ?? ??? ??? ??? ???? ????????:

<configuration>
   <system.net>
      <defaultProxy>
         <proxy
            usesystemdefault = "false"
            proxyaddress="http://proxyserver"
            bypassonlocal="true"
         />
      </defaultProxy>
   </system.net>
</configuration>

				
???? WebProxy ???????? ?? ????? ???? ????????? ?? ???? ???????? ?? ????? ?? ???, ????? ????? ??? ?? ????? ????:

Using System.Net;

com.someserver.somewebservice.someclass MyWebServiceClass = new com.someserver.somewebservice.someclass();

IWebProxy proxyObject = new WebProxy("http://myproxyserver:80", true);
MyWebServiceClass.Proxy = proxyObject;

MyWebServiceClass.MyWebMethod();

				


NTLM ?????????? ?? ???????? ???? ?? ???????? ?????

NTML ??????? ???????? ????? ?? ??? ??? ???? ?? ???, ????? ????? ??? ?? ????? ????:
Using System.Net;

WebProxy myProxy = new WebProxy("http://proxyserver:port",true); myProxy.Credentials = CredentialCache.DefaultCredentials; FindServiceSoap myFindService = new FindServiceSoap(); myFindService.Proxy = myProxy;
?? ?? ???????? ?? ??? ??? ??????-????????? ???????? ?? ????? ?? ???? ???? ??? ???? ?? ??? ???????????? ????? ??? ????? ???????? ?? ????? ????:
<configuration> 
   <system.net> 
     <defaultProxy> 
        <proxy 
           proxyaddress = "http://proxyserver:80" 
           bypassonlocal = "true" /> 
     </defaultProxy> 
  </system.net> 
</configuration>

??????

???? ??????? ?? ???, ????? Microsoft ?????? ????? ??????? (MSDN) ??? ????:
IWebProxy ????????

<defaultProxy>????</defaultProxy>
???????? ??????? ?? ???, Microsoft ???????? ??? ???? ????? ?? ??? ?????????? ???? ?????? ????? ????:
307220???? ?? XML ??? ???? ??????? ?? ????? ?? ????????? ??????? ???????? ????? ?? ??? ??? ???? ?? ??? NET ?????

???

???? ID: 318140 - ????? ???????: 18 ??? 2012 - ??????: 7.0
???? ???? ???? ??:
  • Microsoft .NET Framework 1.0
  • Microsoft .NET Framework 1.1
  • Microsoft ASP.NET 1.0
  • Microsoft ASP.NET 1.1
??????: 
kbprb kbmt KB318140 KbMthi
???? ?????? ????????
??????????: ?? ???? ?? ???? ??????? ?? ????? ?? Microsoft ????-?????? ?????????? ?????? ?????? ???? ??? ??. Microsoft ???? ??? ????-???????? ?? ????-???????? ????? ?????? ?? ???? ???????? ???? ?? ???? ????? ????? ??? ?? ??? ?????? ?? ???? ???? ???? ??? ????? ??. ???????, ????-???????? ???? ????? ???? ???? ???? ???. ?????, ????????, ?????-???? ?? ??????? ?? ???????? ?? ???? ???, ???? ?? ??? ?????? ???? ???? ??? ????? ??? ?? ???? ??. Microsoft ??????? ??? ???? ?? ?????? ?? ??????????, ????????? ?? ??? ?????? ?? ???? ????? ?? ???? ???????? ?? ??? ???? ????? ?? ??? ????????? ???? ??. Microsoft ????-?????? ?????????? ?? ????? ?????? ?? ?? ??? ??.
?????????? ?? ??????? ????????? ??????? ??:318140

??????????? ???

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com