ClickOnce and Proxy Authentication

  • Thread starter Jason Hanford-Smith
  • Start date
J

Jason Hanford-Smith

Hi all,

Hopefully this is the right group to post this to.

Anyway, I've written an application that I'm deploying via ClickOnce. Some
people have informed me that they are unable to install the application.
They get the message below. My question is, can ClickOnce be configured to
use the user's IE Proxy Settings when installing?
PLATFORM VERSION INFO
Windows : 5.0.2195.262144 (Win32NT)
Common Language Runtime : 2.0.50215.44
System.Deployment.dll : 2.0.50215.44 (beta2.050215-4400)
mscorwks.dll : 2.0.50215.44 (beta2.050215-4400)
dfdll.dll : 8.0.50215.44 (beta2.050215-4400)
dfshim.dll : 2.0.50215.44 (beta2.050215-4400)

SOURCES
Deployment url : http://<url to application
file>.application

ERROR SUMMARY
Below is a summary of the errors, details of these errors are listed
later in the log.
* Activation of http<url to application file>.application resulted
in exception. Following failure messages were detected:

+ Failed while downloading http://<url to application
file>.application
+ The remote server returned an error: (407) Proxy
Authentication Required.

COMPONENT STORE TRANSACTION FAILURE SUMMARY
No transaction error was detected.

WARNINGS
There were no warnings during this operation.

OPERATION PROGRESS STATUS
* [04 Nov 2005 12:05:21 +00:00] : Activation of http://<url to
application file>.application has started.

ERROR DETAILS
Following errors were detected during this operation.
* [04 Nov 2005 12:05:21 +00:00]
System.Deployment.Application.DeploymentDownloadException (Unknown subtype)
- Failed while downloading http://<url to application
file>.application
- Source: System.Deployment
- Stack trace:
at
System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem
next)
at
System.Deployment.Application.SystemNetDownloader.DownloadAllFiles()
at
System.Deployment.Application.FileDownloader.Download(SubscriptionState
subState)
at
System.Deployment.Application.DownloadManager.DownloadManifest(Uri&
sourceUri, String targetPath, IDownloadNotification notification,
DownloadOptions options, ManifestType manifestType, ServerInformation&
serverInformation)

at
System.Deployment.Application.DownloadManager.DownloadDeploymentManifestDirect(SubscriptionStore
subStore, Uri& sourceUri, TempFile& tempFile, IDownloadNotification
notification, DownloadOptions options, ServerInformation& serverInformation)

at
System.Deployment.Application.DownloadManager.DownloadDeploymentManifest(SubscriptionStore
subStore, Uri& sourceUri, TempFile& tempFile, IDownloadNotification
notification, DownloadOptions options)

at
System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri
activationUri, Boolean isShortcut)

at
System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object
state)
--- Inner Exception ---
System.Net.WebException
- The remote server returned an error: (407) Proxy
Authentication Required.
- Source: System
- Stack trace:
at System.Net.HttpWebRequest.GetResponse()
at
System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem
next)

COMPONENT STORE TRANSACTION DETAILS
No transaction information is available.
 
K

Kevin Yu [MSFT]

Hi Jason,

We have reviewed this issue and are currently researching on it. We will
update you ASAP. Thanks for your patience!

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
 
J

Jeffrey Tan[MSFT]

Hi Jason,

Thanks for your post.

For this issue, it has been confirmed as a known issue of Whidbey. The root
cause is that .Net deployment API did not use the default proxy and
credentials to access the remote clickonce files.

To workaround this issue, we can set useDefaultCredentials to true in
machine.config, like this:
<defaultProxy enabled="true" useDefaultCredentials="true">

The official bug link is:
"Bug Details: click once fails with proxy authentication"
http://lab.msdn.microsoft.com/ProductFeedback/viewFeedback.aspx?feedbackid=0
a5f94d6-592e-4a3b-9c35-879a1ecdba57

Hope this helps

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
J

Jeffrey Tan[MSFT]

Hi Jason,

Have you tried my suggestion? Is your problem resolved? Please feel free
to tell me, thanks

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top