2

我正在使用经过身份验证的代理连接到 Internet。代理设置列在控制面板中,我第一次连接到网站时会看到一个用户/密码对话框。

虽然它通常工作正常,但当我启动需要从 Internet 下载文件的 Clickonce 应用程序时,我收到此错误:

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

我进入了日志文件,发现了这个:

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)

我已将凭据添加到用户设置中的“我的凭据”部分,但它仍然不起作用。

有没有办法通过经过身份验证的代理下载 Clickonce 应用程序的文件?

4

1 回答 1

2

谷歌搜索“clickonce 中的代理凭据”并过滤过去一年内的结果,我发现了这个解决方法。

如何使用带有代理身份验证的 ClickOnce:http ://www.0x00.to/post/2012/12/31/How-to-use-ClickOnce-with-proxy-authentication

编辑

https://github.com/mc-kay/ClickOnceWithProxySupport

于 2013-01-02T17:42:12.437 回答