ClickOnce - 无法下载...应用程序缺少必需的文件。 [英] ClickOnce - Cannot download... The application is missing required files.

查看:129
本文介绍了ClickOnce - 无法下载...应用程序缺少必需的文件。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在2年前编写了一个ClickOnce部署的应用程序。 在过去的6个月里,我一直在维护它。 对于开发,我有一个开发机器,一个用于修改发布的Web服务器和一个客户端机器来下载和测试应用程序的


此设置在今天工作正常。  我突然在尝试安装应用程序时在客户端计算机上收到消息。  "无法下载该应用程序。 该应用程序缺少必需的文件。 联系appliaction供应商
寻求帮助"。 如果我添加了任何内容,这个错误就有意义了,但我们应该在周五发布这个版本,所以我不可能在游戏的后期添加任何东西。


我的服务器人向我保证,那里没有任何变化。


错误消息中显示的文件是应用程序的.application文件。 错误显示的路径位于"本地设置"下的临时网络目录中。 客户端机器甚至没有该目录。


我完全被难以忍受并在周五截止日期前大汗淋漓。 请帮助!


日志输出:


平台版本信息

  Windows   :5.1 .2600.196608(Win32NT)

 公共语言运行时 :2.0.50727.3615
$
  System.Deployment.dll  :2.0.50727.3053(netfxsp。 050727-3000)

  mscorwks.dll   :2.0.50727.3615(GDR.050727-3600)

  dfdll.dll   ; :2.0.50727.3053(netfxsp.050727-3000)

  dfshim.dll   :4.0.31106.0(Main.031106-0000)


来源

 部署网址   :
file:/// C:/ Documents%20and%20Settings / rburns / Local%20Settings / Temporary%20Internet%20Files / Content。 IE5 / 9FPCXFWY / QBIN.BuilderLinkXP.application


错误摘要

 以下是错误摘要,详情为日志错误会在日志中列出。

  *激活C:\Documents和Settings \rburns \本地设置\Temporary Internet Files \ Content.IE5 \ 9FPCXFWY \\ \\ QBIN.BuilderLinkXP.application导致异常。检测到以下失败消息:

   +正在下载 file:/// C:/ Documents 和设置/ rburns /本地设置/ Internet临时文件/ Content.IE5 / 9FPCXFWY / QBIN.BuilderLinkXP.application未成功。

   +找不到文件'C:\Documents和设置\ rburns \本地设置\Temporary Internet Files\Content.IE5\FPCXFWY\QBIN.BuilderLinkXP.application'。
$
   +找不到文件'C: \Documents and Settings \rburns \ Local Settings \Temporary Internet Files\Content.IE5\FPCXFWY\QBIN.BuilderLinkXP.application'。

   +找不到文件'C:\Documents and Settings \rburns \ Local Settings \Temporary Internet Files\Content.IE5\FPCXFWY\QBIN.BuilderLinkXP.application'。


COMPONENT商店交易失败摘要

 没有检测到交易错误d。


警告

 此操作期间没有警告。


操作进度状态

  * [3/29/2011 8:45:56 PM]:激活C:\Documents and Settings \rburns \本地设置\Temporary Internet Files \ Content.IE5 \ 9FPCXFWY \ QBIN.BuilderLinkXP.application已经开始。


错误详情

 在此操作过程中检测到以下错误。

  ; * [3/29/2011 8:45:56 PM] System.Deployment.Application.DeploymentDownloadException(未知子类型)

   - 正在下载 file:/// C:/ Documents 和Settings / rburns / Local Settings / Temporary Internet Files / Content.IE5 / 9FPCXFWY / QBIN.BuilderLinkXP.application未成功。

   - 来源:System.Deployment

   - 堆栈跟踪:

   在System.Deployment.Application .SystemNetDownloader.DownloadSingleFile(NextQueueItem 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
选项,ServerInformation和服务器信息)

    at System.Deployment.Application.DownloadManager.DownloadDeploymentManifestBypass(SubscriptionStore subStore,Uri& sourceUri,TempFile& tempFile,SubscriptionState& subState,IDownloadNotification notification,DownloadOptions
选项)

   在System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri activationUri,Boolean isShortcut,String textualSubId,String deploymentProviderUrlFromExtension,BrowserSettings browserSettings,String& errorPageUrl)

   在System.Deployment.Application.ApplicationActivator.ActivateDeploym entWorker(对象状态)

   ---内部例外---

   System.Net.WebException

   - 找不到文件'C:\Documents and Settings \rburns \ Local Settings \Temporary Internet Files \ Content.IE5 \ 9FPCXFWY \ QBIN.BuilderLinkXP.application'。

   - 来源:系统

   - 堆栈跟踪:

    at System.Net.FileWebRequest.EndGetResponse (IAsyncResult asyncResult)

    at System.Net.FileWebRequest.GetResponse()

    at System.Deployment.Application.SystemNetDownloader .DownloadSingleFile(NextQueueItem next)

   ---内部异常---

   System.Net.WebException

   - 找不到文件'C:\Documents and Settings \rburns \ Local Settings \Temporary Internet Files \ Content.IE5 \ 9FPCXFWY \ QBIN.BuilderLinkXP.application'。
   - 来源:系统

   - 堆栈跟踪:

   在System.Net。 FileWebResponse..ctor(FileWebRequest request,Uri uri,FileAccess access,Boolean asyncHint)

    at System.Net.FileWebRequest.GetResponseCallback(Object state)

   ---内部例外---

   System.IO.FileNotFoundException

   - 找不到文件'C: \Documents and Settings \rburns \ Local Settings \Temporary Internet Files\Content.IE5\FPCXFWY\QBIN.BuilderLinkXP.application'。

   - 来源:mscorlib

   - 堆栈跟踪:

    at System.IO .__ Error.WinIOError(Int32 errorCode,String maybeFullPath)

    at System.IO.FileStream.Init(String path,FileMode mode,FileAccess access,Int32 rights,Boolean useRights,FileShare share,Int32 bufferSize,FileOptions options,SECURITY_ATTRIBUTE S secAttrs,String msgPath,Boolean bFromProxy)

    at System.IO.FileStream..ctor(String path,FileMode mode,FileAccess access,FileShare share,Int32 bufferSize,FileOptions options ,String msgPath,Boolean bFromProxy)

    at System.Net.FileWebStream..ctor(FileWebRequest request,String path,FileMode mode,FileAccess access,FileShare sharing,Int32 length,Boolean在System.Net.FileWebResponse..ctor(FileWebRequest请求,Uri uri,FileAccess访问,布尔asyncHint)<$ p $ $ $ $ $商店交易详情

 没有可用的交易信息。


 

解决方案

首先,我建议在服务器上使用mageui。


转到XXXX.application引用的文件夹并用mageui打开你的XXXX.exe.manifest看看是什么文件已列出。查看是否有任何内容被列为缺失等。


 


I wrote a ClickOnce deployed application about 2 years ago.  I have been maintaining it again for the last 6 months.  For development I have a development machine, a web server to revieve the publish and a client machine to download and test the app.

This set up has work fine until today.  Very suddenly I am getting a message on my client machine when I try to install the app.  "Cannot download the application.  The application is missing required files.  Contact appliaction vendor for assistance".  This error would make sense if I had added anything, but we are supposed to go live with this release on Friday, so there is no way I would add anything this late in the game.

My server guy assures me that nothing has changed there.

The file that is shown in the error message is the .application file for the app.  The path the error shows is in the temp internet directory under Local Settings.  The client machine doesn't even have that directory.

I am completly stumped and sweating the Friday deadline.  Please help!

Log Output:

PLATFORM VERSION INFO
 Windows    : 5.1.2600.196608 (Win32NT)
 Common Language Runtime  : 2.0.50727.3615
 System.Deployment.dll   : 2.0.50727.3053 (netfxsp.050727-3000)
 mscorwks.dll    : 2.0.50727.3615 (GDR.050727-3600)
 dfdll.dll    : 2.0.50727.3053 (netfxsp.050727-3000)
 dfshim.dll    : 4.0.31106.0 (Main.031106-0000)

SOURCES
 Deployment url   : file:///C:/Documents%20and%20Settings/rburns/Local%20Settings/Temporary%20Internet%20Files/Content.IE5/9FPCXFWY/QBIN.BuilderLinkXP.application

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\rburns\Local Settings\Temporary Internet Files\Content.IE5\9FPCXFWY\QBIN.BuilderLinkXP.application resulted in exception. Following failure messages were detected:
  + Downloading file:///C:/Documents and Settings/rburns/Local Settings/Temporary Internet Files/Content.IE5/9FPCXFWY/QBIN.BuilderLinkXP.application did not succeed.
  + Could not find file 'C:\Documents and Settings\rburns\Local Settings\Temporary Internet Files\Content.IE5\9FPCXFWY\QBIN.BuilderLinkXP.application'.
  + Could not find file 'C:\Documents and Settings\rburns\Local Settings\Temporary Internet Files\Content.IE5\9FPCXFWY\QBIN.BuilderLinkXP.application'.
  + Could not find file 'C:\Documents and Settings\rburns\Local Settings\Temporary Internet Files\Content.IE5\9FPCXFWY\QBIN.BuilderLinkXP.application'.

COMPONENT STORE TRANSACTION FAILURE SUMMARY
 No transaction error was detected.

WARNINGS
 There were no warnings during this operation.

OPERATION PROGRESS STATUS
 * [3/29/2011 8:45:56 PM] : Activation of C:\Documents and Settings\rburns\Local Settings\Temporary Internet Files\Content.IE5\9FPCXFWY\QBIN.BuilderLinkXP.application has started.

ERROR DETAILS
 Following errors were detected during this operation.
 * [3/29/2011 8:45:56 PM] System.Deployment.Application.DeploymentDownloadException (Unknown subtype)
  - Downloading file:///C:/Documents and Settings/rburns/Local Settings/Temporary Internet Files/Content.IE5/9FPCXFWY/QBIN.BuilderLinkXP.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
  - Could not find file 'C:\Documents and Settings\rburns\Local Settings\Temporary Internet Files\Content.IE5\9FPCXFWY\QBIN.BuilderLinkXP.application'.
  - Source: System
  - Stack trace:
   at System.Net.FileWebRequest.EndGetResponse(IAsyncResult asyncResult)
   at System.Net.FileWebRequest.GetResponse()
   at System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem next)
  --- Inner Exception ---
  System.Net.WebException
  - Could not find file 'C:\Documents and Settings\rburns\Local Settings\Temporary Internet Files\Content.IE5\9FPCXFWY\QBIN.BuilderLinkXP.application'.
  - Source: System
  - Stack trace:
   at System.Net.FileWebResponse..ctor(FileWebRequest request, Uri uri, FileAccess access, Boolean asyncHint)
   at System.Net.FileWebRequest.GetResponseCallback(Object state)
  --- Inner Exception ---
  System.IO.FileNotFoundException
  - Could not find file 'C:\Documents and Settings\rburns\Local Settings\Temporary Internet Files\Content.IE5\9FPCXFWY\QBIN.BuilderLinkXP.application'.
  - Source: mscorlib
  - Stack trace:
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
   at System.Net.FileWebStream..ctor(FileWebRequest request, String path, FileMode mode, FileAccess access, FileShare sharing, Int32 length, Boolean async)
   at System.Net.FileWebResponse..ctor(FileWebRequest request, Uri uri, FileAccess access, Boolean asyncHint)

COMPONENT STORE TRANSACTION DETAILS
 No transaction information is available.

 

解决方案

At first, I would suggest using mageui on the server.

Go to the folder referenced by XXXX.application and open your XXXX.exe.manifest with mageui see what files are listed. See if anything is listed as missing, etc.

 


这篇关于ClickOnce - 无法下载...应用程序缺少必需的文件。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆