Monday, December 21, 2020

ASP.Net IIS web application send all requests via proxy without code change

For your web application, edit the web.config file (in the app root) and add as shown below. Note: you may already have a system.net or configuration section. You will have to add the defaultproxy section to the existing parent elements as needed

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <system.net>
    <defaultProxy enabled="true" useDefaultCredentials="true">
      <proxy proxyaddress="http://proxyservername:proxyserverport/" bypassonlocal="false" usesystemdefault="false" autoDetect="false" />
    </defaultProxy>
  </system.net>
</configuration>

No comments:

Turn on Windows 11 Fast Boot

If windows starting is slow, to enable windows 11 fast startup/boot,  Press Windows + R, type powercfg.cpl, and hit Enter.  This will direct...