单击一次噩梦 System.Deployment.Application.DeploymentDownloadException [英] clickonce nightmare System.Deployment.Application.DeploymentDownloadException

查看:20
本文介绍了单击一次噩梦 System.Deployment.Application.DeploymentDownloadException的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人知道如何解决这个问题吗?这是我尝试运行 setup.exe 时得到的

anyone know how to fix this? this is what i get when i try to run setup.exe

平台版本信息视窗:5.1.2600.196608 (Win32NT)公共语言运行时:2.0.50727.3053System.Deployment.dll : 2.0.50727.3053 (netfxsp.050727-3000)mscorwks.dll : 2.0.50727.3053 (netfxsp.050727-3000)dfdll.dll : 2.0.50727.3053 (netfxsp.050727-3000)dfshim.dll : 2.0.50727.3053 (netfxsp.050727-3000)

PLATFORM VERSION INFO Windows : 5.1.2600.196608 (Win32NT) Common Language Runtime : 2.0.50727.3053 System.Deployment.dll : 2.0.50727.3053 (netfxsp.050727-3000) mscorwks.dll : 2.0.50727.3053 (netfxsp.050727-3000) dfdll.dll : 2.0.50727.3053 (netfxsp.050727-3000) dfshim.dll : 2.0.50727.3053 (netfxsp.050727-3000)

来源部署网址:file:///C:/Documents%20and%20Settings/PGarcia.BMRA/Desktop/Intol%20Prog/WindowsApplication1.application

SOURCES Deployment url : file:///C:/Documents%20and%20Settings/PGarcia.BMRA/Desktop/Intol%20Prog/WindowsApplication1.application

身份部署标识:WindowsApplication1.application,版本=1.0.0.3,Culture=neutral,PublicKeyToken=a9ac82ee8eb508b4,processorArchitecture=msil

IDENTITIES Deployment Identity : WindowsApplication1.application, Version=1.0.0.3, Culture=neutral, PublicKeyToken=a9ac82ee8eb508b4, processorArchitecture=msil

应用摘要* 可安装的应用程序.

APPLICATION SUMMARY * Installable application.

错误总结下面是错误的摘要,这些错误的详细信息在日志后面列出.* 激活 C:\Documents and Settings\PGarcia.BMRA\Desktop\Intol Prog\WindowsApplication1.application 导致异常.检测到以下失败消息:+ 下载 file:///C:/Documents and Settings/PGarcia.BMRA/Desktop/Intol Prog/Application Files/WindowsApplication1_1_0_0_3/WindowsApplication1.exe.manifest 没有成功.+ 找不到路径C:\Documents and Settings\PGarcia.BMRA\Desktop\Intol Prog\Application Files\WindowsApplication1_1_0_0_3\WindowsApplication1.exe.manifest"的一部分.+ 找不到路径C:\Documents and Settings\PGarcia.BMRA\Desktop\Intol Prog\Application Files\WindowsApplication1_1_0_0_3\WindowsApplication1.exe.manifest"的一部分.+ 找不到路径C:\Documents and Settings\PGarcia.BMRA\Desktop\Intol Prog\Application Files\WindowsApplication1_1_0_0_3\WindowsApplication1.exe.manifest"的一部分.

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\PGarcia.BMRA\Desktop\Intol Prog\WindowsApplication1.application resulted in exception. Following failure messages were detected: + Downloading file:///C:/Documents and Settings/PGarcia.BMRA/Desktop/Intol Prog/Application Files/WindowsApplication1_1_0_0_3/WindowsApplication1.exe.manifest did not succeed. + Could not find a part of the path 'C:\Documents and Settings\PGarcia.BMRA\Desktop\Intol Prog\Application Files\WindowsApplication1_1_0_0_3\WindowsApplication1.exe.manifest'. + Could not find a part of the path 'C:\Documents and Settings\PGarcia.BMRA\Desktop\Intol Prog\Application Files\WindowsApplication1_1_0_0_3\WindowsApplication1.exe.manifest'. + Could not find a part of the path 'C:\Documents and Settings\PGarcia.BMRA\Desktop\Intol Prog\Application Files\WindowsApplication1_1_0_0_3\WindowsApplication1.exe.manifest'.

组件商店交易失败摘要未检测到交易错误.

COMPONENT STORE TRANSACTION FAILURE SUMMARY No transaction error was detected.

警告此操作期间没有警告.

WARNINGS There were no warnings during this operation.

操作进度状态* [6/9/2009 11:26:55 AM] : C:\Documents and Settings\PGarcia.BMRA\Desktop\Intol Prog\WindowsApplication1.application 的激活已经开始.* [6/9/2009 11:26:56 AM]:部署清单的处理已成功完成.* [6/9/2009 11:26:56 AM]:应用程序安装已开始.

OPERATION PROGRESS STATUS * [6/9/2009 11:26:55 AM] : Activation of C:\Documents and Settings\PGarcia.BMRA\Desktop\Intol Prog\WindowsApplication1.application has started. * [6/9/2009 11:26:56 AM] : Processing of deployment manifest has successfully completed. * [6/9/2009 11:26:56 AM] : Installation of the application has started.

错误详情在此操作期间检测到以下错误.* [6/9/2009 11:26:56 AM] System.Deployment.Application.DeploymentDownloadException(未知子类型)- 下载 file:///C:/Documents and Settings/PGarcia.BMRA/Desktop/Intol Prog/Application Files/WindowsApplication1_1_0_0_3/WindowsApplication1.exe.manifest 没有成功.- 来源:System.Deployment- 堆栈跟踪:在 System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem next)在 System.Deployment.Application.SystemNetDownloader.DownloadAllFiles()在 System.Deployment.Application.FileDownloader.Download(SubscriptionState subState)在 System.Deployment.Application.DownloadManager.DownloadManifestAsRawFile(Uri& sourceUri, String targetPath, IDownloadNotification 通知, DownloadOptions 选项, ServerInformation& serverInformation)在 System.Deployment.Application.DownloadManager.DownloadManifest(Uri& sourceUri, String targetPath, IDownloadNotification 通知, DownloadOptions options, ManifestType manifestType, ServerInformation& serverInformation)在 System.Deployment.Application.DownloadManager.DownloadApplicationManifest(AssemblyManifest deploymentManifest, String targetDir, Uri deploymentUri, IDownloadNotification 通知, DownloadOptions 选项, Uri& appSourceUri, String& appManifestPath)在 System.Deployment.Application.ApplicationActivator.DownloadApplication(SubscriptionState subState, ActivationDescription actDesc, Int64 transactionId, TempDirectory& downloadTemp)在 System.Deployment.Application.ApplicationActivator.InstallApplication(SubscriptionState& subState, ActivationDescription actDesc)在 System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl)在 System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(对象状态)--- 内部异常 ---System.Net.Web异常- 找不到路径C:\Documents and Settings\PGarcia.BMRA\Desktop\Intol Prog\Application Files\WindowsApplication1_1_0_0_3\WindowsApplication1.exe.manifest"的一部分.- 来源:系统- 堆栈跟踪:在 System.Net.FileWebRequest.EndGetResponse(IAsyncResult asyncResult)在 System.Net.FileWebRequest.GetResponse()在 System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem next)--- 内部异常 ---System.Net.Web异常- 找不到路径C:\Documents and Settings\PGarcia.BMRA\Desktop\Intol Prog\Application Files\WindowsApplication1_1_0_0_3\WindowsApplication1.exe.manifest"的一部分.- 来源:系统- 堆栈跟踪:在 System.Net.FileWebResponse..ctor(FileWebRequest request, Uri uri, FileAccess access, Boolean asyncHint)在 System.Net.FileWebRequest.GetResponseCallback(对象状态)--- 内部异常 ---System.IO.DirectoryNotFoundException- 找不到路径C:\Documents and Settings\PGarcia.BMRA\Desktop\Intol Prog\Application Files\WindowsApplication1_1_0_0_3\WindowsApplication1.exe.manifest"的一部分.- 来源:mscorlib- 堆栈跟踪:在 System.IO.__Error.WinIOError(Int32 errorCode, String mightFullPath)在 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)在 System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)在 System.Net.FileWebStream..ctor(FileWebRequest 请求、字符串路径、文件模式模式、文件访问访问、文件共享共享、Int32 长度、布尔异步)在 System.Net.FileWebResponse..ctor(FileWebRequest request, Uri uri, FileAccess access, Boolean asyncHint)

ERROR DETAILS Following errors were detected during this operation. * [6/9/2009 11:26:56 AM] System.Deployment.Application.DeploymentDownloadException (Unknown subtype) - Downloading file:///C:/Documents and Settings/PGarcia.BMRA/Desktop/Intol Prog/Application Files/WindowsApplication1_1_0_0_3/WindowsApplication1.exe.manifest 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.DownloadApplicationManifest(AssemblyManifest deploymentManifest, String targetDir, Uri deploymentUri, IDownloadNotification notification, DownloadOptions options, Uri& appSourceUri, String& appManifestPath) 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.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 a part of the path 'C:\Documents and Settings\PGarcia.BMRA\Desktop\Intol Prog\Application Files\WindowsApplication1_1_0_0_3\WindowsApplication1.exe.manifest'. - 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 a part of the path 'C:\Documents and Settings\PGarcia.BMRA\Desktop\Intol Prog\Application Files\WindowsApplication1_1_0_0_3\WindowsApplication1.exe.manifest'. - 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.DirectoryNotFoundException - Could not find a part of the path 'C:\Documents and Settings\PGarcia.BMRA\Desktop\Intol Prog\Application Files\WindowsApplication1_1_0_0_3\WindowsApplication1.exe.manifest'. - 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.

推荐答案

我们在 [Qiqqa.com][1] 的 ClickOnce 部署中遇到了同样的问题.我怀疑这与 IE 在获取应用程序/八位字节流时​​执行的MIME 类型嗅探"有关 - 我想是为了保护用户免受恶意内容的侵害.

We had this same problem embedded in our ClickOnce deployment of [Qiqqa.com][1]. I suspect it has to do with the "MIME Type sniffing" that IE does when it gets an application/octet-stream - I guess to protect the user from malicious stuff.

无论如何,为了解决问题,我们将 .deploy 文件的 mime 类型更改为 text/plain - 显然不理想,但同时,我不知道我们可能有 .deploy 的场景我们服务器上的文件,用户将在 ClickOnce 之外浏览该文件.

Anyway, to solve the problem, we changed the mime type of our .deploy files to be text/plain - obviously not ideal, but at the same time, I don't know a scenario where we might have a .deploy file on our server that a user would browse to outside ClickOnce.

问题解决了.

干杯,

吉姆

这篇关于单击一次噩梦 System.Deployment.Application.DeploymentDownloadException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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