Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am using an authenticated proxy to connect to the internet. The proxy settings are listed in Control Panel, and I get a user/password dialog box the first time I connect to a website.

While it normally works fine, when I launched a Clickonce application that needed to download files from the internet, I got this error:

Application download did not succeed. Check your network connection, or contact your system administrator or network service provider.

I went into the log file, and found this:

ERROR DETAILS
    Following errors were detected during this operation.
    * [22/12/2012 15:19:25] System.Deployment.Application.DeploymentDownloadException (Unknown subtype)
        - Downloading http://#######.###/########.application did not succeed.
        - 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.DownloadManifestAsRawFile(Uri& sourceUri, String targetPath, IDownloadNotification notification, DownloadOptions options, ServerInformation& serverInformation)
            at System.Deployment.Application.DownloadManager.DownloadDeploymentManifestDirectBypass(SubscriptionStore subStore, Uri& sourceUri, TempFile& tempFile, SubscriptionState& subState, IDownloadNotification notification, DownloadOptions options, ServerInformation& serverInformation)
            at System.Deployment.Application.DownloadManager.DownloadDeploymentManifestBypass(SubscriptionStore subStore, Uri& sourceUri, TempFile& tempFile, SubscriptionState& subState, IDownloadNotification notification, DownloadOptions options)
            at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl)
            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)

I've added the credentials to the "My Credentials" section in user settings, but it still did not work.

Is there any way to download files for a Clickonce application, via an authenticated proxy?

share|improve this question
    
Do not post duplicates on multiple SE sites. You received the answer on SO after duplicating the question there, whereas if you felt it was a better fit for that site you should have flagged for a mod to migrate it. –  Karan Mar 8 '13 at 1:00

1 Answer 1

up vote 0 down vote accepted

Googling "proxy credentials in clickonce" and filtering for results within the past year I found this work-around.

How to use ClickOnce with proxy authentication: http://www.0x00.to/post/2012/12/31/How-to-use-ClickOnce-with-proxy-authentication

Answer from Stackoverflow by lastcoder

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.