0

我正在测试一些东西,所以我编写了一个非常简单的 WPF 应用程序,看看我是否可以让 ClickOnce 部署从网络附加存储 (NAS) 硬盘驱动器上工作。(它是希捷 GoFlex HD。)我在那里发布了它(我最初遇到了问题,因为我没有签署它。我倾向于忘记这一点。在这种情况下,我不想签署它,因为这个应用程序只能在我的家庭网络上运行。)一旦我在 VS 2010 中清除了签名,我就可以将它很好地发布到 NAS。然后我去了另一台机器并尝试在那里安装它。失败得很惨。它产生的错误如下:

ERROR DETAILS
 Following errors were detected during this operation.  
 * [11/21/2011 6:11:52 PM] System.Deployment.Application.DeploymentDownloadException (Unknown subtype)  
  - Downloading file://goflex_home/Click Once/TestBackground1/TestBackground1.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.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.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)  
   at System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)  
  --- Inner Exception ---  
  System.Net.WebException  
  - The network name cannot be found.  

那么,“找不到网络名称”是什么意思?我指定了一个在我的家庭网络上的所有机器上都知道的网络知道。

4

0 回答 0