2011-11-28 182 views
1

我有一个恼人的问题。我已经通过clickonce部署了应用程序。到目前为止它工作得很好,并且很多更新都很容易部署。这一次我不得不在我的应用程序中做一些重大更改。这导致更新大约是16MB。不幸的是大多数的时间在客户端的计算机错误下载更新过程中发生(在随机时刻):ClickOnce错误:现有连接被远程主机强制关闭

ERROR SUMMARY 
Below is a summary of the errors, details of these errors are listed later in the log. 
* Activation of C:\Documents and Settings\Administrator\Menu Start\Programy\Marketell\Marketell.appref-ms| resulted in exception. Following failure messages were detected: 
    + Downloading http://xx.xx.xx.xx/Marketell 2/Application Files/Marketell_1_0_1_2/CounterPathSDK.dll.deploy did not succeed. 
    + Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. 
    + An existing connection was forcibly closed by the remote host 

还有一些细节:

ERROR DETAILS 
Following errors were detected during this operation. 
* [2011-11-28 14:02:34] System.Deployment.Application.DeploymentDownloadException (Unknown subtype) 
    - Downloading http://xx.xx.xx.xx/Marketell 2/Application Files/Marketell_1_0_1_2/CounterPathSDK.dll.deploy 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.DownloadDependencies(SubscriptionState subState, AssemblyManifest deployManifest, AssemblyManifest appManifest, Uri sourceUriBase, String targetDirectory, String group, IDownloadNotification notification, DownloadOptions options) 
     at System.Deployment.Application.ApplicationActivator.DownloadApplication(SubscriptionState subState, ActivationDescription actDesc, Int64 transactionId, TempDirectory& downloadTemp) 
     at System.Deployment.Application.ApplicationActivator.InstallApplication(SubscriptionState& subState, ActivationDescription actDesc) 
     at System.Deployment.Application.ApplicationActivator.ConsumeUpdatedDeployment(SubscriptionState& subState, ActivationDescription actDesc) 
     at System.Deployment.Application.ApplicationActivator.PerformDeploymentUpdate(SubscriptionState& subState, String& errorPageUrl) 
     at System.Deployment.Application.ApplicationActivator.ProcessOrFollowShortcut(String shortcutFile, String& errorPageUrl, TempFile& deployFile) 
     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.IO.IOException 
    - Unable to read data from the transport connection: Istniejące połączenie zostało gwałtownie zamknięte przez zdalnego hosta. 
    - Source: System 
    - Stack trace: 
     at System.Net.ConnectStream.Read(Byte[] buffer, Int32 offset, Int32 size) 
     at System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem next) 
    --- Inner Exception --- 
    System.Net.Sockets.SocketException 
    - Istniejące połączenie zostało gwałtownie zamknięte przez zdalnego hosta 
    - Source: System 
    - Stack trace: 
     at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags) 
     at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size) 

Ofcourse我为xs代替真正的IP。
只有一次更新正确。我使用WAMP作为HTTP服务器。 我一直在谷歌搜索一段时间,但没有发现任何有用的acutally。

感谢

回答

2

我知道这是一个老问题,但我今天有这个问题,它原来是客户端的防火墙拦截从ClickOnce的服务器二进制文件的下载。我们添加了一个例外,它工作正常。

+0

我完全忘记了我承认的这个问题。你写的东西可能是原因,但这次不是这样。如果有很多新的连接,我发现Apache正在关闭这些连接。还没有找到原因。 – Joe

相关问题