How to declare a network proxy for all windows programs to use?
相关问题
- Sorting 3 numbers without branching [closed]
- Graphics.DrawImage() - Throws out of memory except
- Generic Generics in Managed C++
- Why am I getting UnauthorizedAccessException on th
- 求获取指定qq 资料的方法
A quick search on Bing brought this post.
The guy there was able to do what you want using WMI.
Open IE go to internet options, go to connections, lan settings ->proxy settings
:P Not really an answer, just my tech support days shining through.
.NET framework WebRequest use Internet Options for current user context (accessible from control panel). As if it is set for IE, it will be used by .NET WebRequest.
But when WebRequest will run under account such as "NT AUTHORITY\NETWORK SERVICE", for example from ASP.NET application, there's no Internet Options set for this user. That way you have to play with registry.
For more, read article "Take the Burden Off Users with Automatic Configuration in .NET"