ClickOnce应用发布成功但安装失败,目标服务器拒绝连接求助
ClickOnce应用发布后安装失败问题
发布成功输出
发布操作完成后,输出窗口显示发布成功:
Publish success. http://cardknoxdemo.com/solutionsteam/publish.htm ========== Build: 1 succeeded, 0 failed, 1 up-to-date, 0 skipped ========== ========== Build started at 2:06 PM and took 04:38.902 minutes ========== ========== Publish: 1 succeeded, 0 failed, 0 skipped ========== ========== Publish started at 2:06 PM and took 04:38.902 minutes ==========
安装时错误日志
手动访问发布URL下载应用后,安装过程中出现错误,日志如下:
PLATFORM VERSION INFO Windows : 10.0.19045.0 (Win32NT) Common Language Runtime : 4.0.30319.42000 System.Deployment.dll : 4.8.9037.0 built by: NET481REL1 clr.dll : 4.8.9037.0 built by: NET481REL1 dfdll.dll : 4.8.9037.0 built by: NET481REL1 dfshim.dll : 10.0.19041.30000 (WinBuild.160101.0800) SOURCES Deployment url : file:///C:/Users/mekstein/Downloads/solutions%20(8).application Deployment Provider url : http://fps104/solutions/solutions.application ERROR SUMMARY Below is a summary of the errors, details of these errors are listed later in the log. * Activation of C:\Users\mekstein\Downloads\solutions (8).application resulted in exception. Following failure messages were detected: + Downloading http://fps104/solutions/solutions.application did not succeed. + Unable to connect to the remote server + No connection could be made because the target machine actively refused it 192.168.50.146:80 COMPONENT STORE TRANSACTION FAILURE SUMMARY No transaction error was detected. WARNINGS There were no warnings during this operation. OPERATION PROGRESS STATUS * [8/1/2023 2:11:15 PM] : Activation of C:\Users\mekstein\Downloads\solutions (8).application has started. ERROR DETAILS Following errors were detected during this operation. * [8/1/2023 2:11:19 PM] System.Deployment.Application.DeploymentDownloadException (Unknown subtype) - Downloading http://fps104/solutions/solutions.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, X509Certificate2 clientCertificate) at System.Deployment.Application.DownloadManager.DownloadManifestAsRawFile(Uri& sourceUri, String targetPath, IDownloadNotification notification, DownloadOptions options, 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.FollowDeploymentProviderUri(SubscriptionStore subStore, AssemblyManifest& deployment, Uri& sourceUri, TempFile& tempFile, IDownloadNotification notification, DownloadOptions options) 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, Uri& deploymentUri) at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivationWithRetry(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl) --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivationWithRetry(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 - Unable to connect to the remote server - Source: System - Stack trace: at System.Net.HttpWebRequest.GetResponse() at System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem next) --- Inner Exception --- System.Net.Sockets.SocketException - No connection could be made because the target machine actively refused it 192.168.50.146:80 - Source: System - Stack trace: at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception) COMPONENT STORE TRANSACTION DETAILS No transaction information is available.
环境与已尝试操作
- 使用Bluehost FTP服务器和WinSCP执行发布操作
- 发布时设置的安装文件夹URL为
http://cardknoxdemo.com/solutionsteam/ - 已尝试重置所有发布相关设置,问题仍未解决,寻求解决方案
内容的提问来源于stack exchange,提问作者devory
相关产品推荐
相关产品推荐

