The Kinetic Jump site navigation header requires JavaScript to be enabled and the latest version of the Macromedia Flash Player. If you are you using a browser with JavaScript disabled please enable it now. Otherwise, please update your version of the free Flash Player by downloading here.

Welcome Guest Search | Active Topics | Log In | Register

AutoDetectProxy doesnt pass default credentials Options
brianh
#1 Posted : Thursday, January 31, 2008 4:30:31 PM
Rank: Administration
Groups: Member, Administration

Joined: 5/24/2007
Posts: 362
Location: Minnesota

UPDATE:

AppLife Update Version 1.3 now has a property on the Update Controller that will automatically add default credentials to the auto-detected web proxy.  To include this behavior, set the AddCredentialsToAutoDetectProxy property to true.

 

 

By default, the AppLife Update Controller automatically detects the default proxy setting configured through Internet Explorer.  Unfortunately, the default web proxy does not use default credentials, which results in an HTTP 407 error on proxy servers that require authentication.

 

You can set the "useDefaultCredentials" property of the default web proxy in your app.config file.

 

<configuration>
  <system.net>
    <defaultProxy useDefaultCredentials="true">
   </system.net>
</configuration>

 

Alternatively, you can address this in code.

 

To ensure the default web proxy will send credentials, add the following line before calling UpdateInteractiveCheckForUpdates or DownloadUpdate.

 

System.Net.WebRequest.DefaultWebProxy.Credentials = 

       System.Net.CredentialCache.DefaultNetworkCredentials;

 

After this, when the UpdateController requests the default proxy settings, the user credentials will be present.

Brian Haas
Kinetic Jump Software
Users browsing this topic
Guest
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.