在客户机上安装Windows窗体应用程序的问题。 [英] Issue installing windows forms application on client machine.

查看:73
本文介绍了在客户机上安装Windows窗体应用程序的问题。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我写了我的第一个Windows窗体应用程序,一个简单的介意你,在我开发它的机器上安装时工作正常。我使用Clickonce方法在VS 2010中发布。但是,当我尝试在任何其他计算机上安装它时,它无法安装。我承认我在这个过程中的无知,并要求学习材料的任何建议。



一个消息框提示一条消息说明:



无法下载应用程序。应用程序缺少必需的文件。请联系应用程序供应商寻求帮助。



我点击了详细信息按钮它显示了:



平台版本信息

Windows:6.1.7601.65536(Win32NT)

公共语言运行时:4.0.30319.1008

System.Deployment.dll:4.0.30319.1(RTMRel.030319-0100)

clr.dll:4.0.30319.1008(RTMGDR.030319-1000)

dfdll.dll:4.0.30319.1(RTMRel.030319-0100)

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



来源

部署网址:file:/// C:/ClientRecords.application



IDENTITIES

部署标识:ClientRecords.application,Version = 1.0.0.5,Culture = neutral,Pu blicKeyToken = 666a49fb069cf5eb,processorArchitecture = msil



申请概要

*可安装的应用程序。



错误摘要

以下是错误摘要,这些错误的详细信息将在后面的日志中列出。

*激活C:\ClientRecords.application导致例外。检测到以下失败消息:

+正在下载文件:/// C:/ Application Files / ClientRecords_1_0_0_5 / ClientRecords.exe.manifest未成功。



COMPONENT STORE TRANSACTION FAILURE概要

未检测到交易错误。



警告

有在此操作期间没有警告。



操作进度状态

* [2013年9月18日下午1:39:51]:激活C:\ClientRecords.application已经开始。

* [2013年9月18日1:39:51]:部署清单的处理已成功完成。

* [9/18/2013 1:39:51 PM]:应用程序的安装已经开始。



错误详情

以下错误是在此操作中检测到​​。

* [2013年9月18日1:39:52] System.Deployment.Application.DeploymentDownloadException(未知子类型)

- 正在下载文件: /// C:/ Application Files / ClientRecords_1_0_0_5 / Clie ntRecords.exe.manifest没有成功。

- 来源:System.Deployment

- 堆栈跟踪:

在System.Deployment.Application。 SystemNetDownloader.DownloadSingleFile(NextQueueItem next)

在System.Deployment.Application.SystemNetDownloader.DownloadAllFiles()

在System.Deployment.Application.FileDownloader.Download(SubscriptionState subState)<在System.Deployment.Application.DownloadManager.DownloadManifestAsRawFile(Uri&sourceUri,String targetPath,IDownloadNotification notification,DownloadOptions选项,ServerInformation和serverInformation)上的


在System.Deployment.Application.DownloadManager中。 DownloadApplicationManifest(AssemblyManifest deploymentManifest,String targetDir,Uri deploymentUri,IDownloadNotification notification,DownloadOptions options,Uri&appSourceUri,String&appManifestPath)

在System.Deployment.Application.DownloadManager.DownloadApplicationManifest(AssemblyMani) fest deploymentManifest,String targetDir,Uri deploymentUri,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.WebException

- 找不到路径的一部分'C:\ Application Files \ClientRecords_1_0_0_5 \ Clien tRecords.exe.manifest'。

- 来源:系统

- 堆栈跟踪:

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

在System.Net.FileWebRequest.GetResponse()

在System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem next)

- - 内部异常---

System.Net.WebException

- 找不到路径'C:\ Application Files \ClientRecords_1_0_0_5 \ClientRecords的一部分.exe.manifest'。

- 来源:系统

- 堆栈跟踪:

在System.Net.FileWebResponse..ctor(FileWebRequest请求) ,Uri uri,FileAccess访问,布尔asyncHint)

在System.Net.FileWebRequest.GetResponseCallback(对象状态)

---内部异常---

System.IO.DirectoryNotFoundException

- 找不到路径的一部分'C:\ Application Files \ClientRecords_1_0_0_5 \\ \\ ClientRecords.exe.manifest'。

- 来源:mscorlib

- 堆栈跟踪:

at System.IO .__ Error.WinIOError(Int32在System.IO.FileStream.Init(String路径,FileMode模式,FileAccess访问,Int32权限,布尔useRights,FileShare共享,Int32 bufferSize,FileOptions选项,SECURITY_ATTRIBUTES secAttrs,String)中的errorCode,String maybeFullPath)

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

在System.IO.FileStream..ctor(字符串路径,FileMode模式,FileAccess访问,FileShare共享,Int32 bufferSize,Boolean useAsync)

在System.Net.FileWebStream ..ctor(FileWebRequest请求,字符串路径,FileMode模式,FileAccess访问,FileShare共享,Int32长度,布尔异步)

在System.Net.FileWebResponse..ctor(FileWebRequ) est请求,Uri uri,FileAccess访问,布尔asyncHint)



组件商店交易详情

没有交易信息。

I wrote my first windows forms application, a simple one mind you, that works fine when installed on the machine I developed it on. I used the Clickonce method to publish in VS 2010. However, when I try and install it on any other machine, it fails to install. I admit my ignorance in this process and request any suggestions on material to study.

A message box prompts a message that states:

"Cannot download application. The application is missing required files. Contact application vendor for assistance."

I clicked the "Details" button and it showed this:

PLATFORM VERSION INFO
Windows : 6.1.7601.65536 (Win32NT)
Common Language Runtime : 4.0.30319.1008
System.Deployment.dll : 4.0.30319.1 (RTMRel.030319-0100)
clr.dll : 4.0.30319.1008 (RTMGDR.030319-1000)
dfdll.dll : 4.0.30319.1 (RTMRel.030319-0100)
dfshim.dll : 4.0.31106.0 (Main.031106-0000)

SOURCES
Deployment url : file:///C:/ClientRecords.application

IDENTITIES
Deployment Identity : ClientRecords.application, Version=1.0.0.5, Culture=neutral, PublicKeyToken=666a49fb069cf5eb, processorArchitecture=msil

APPLICATION SUMMARY
* Installable application.

ERROR SUMMARY
Below is a summary of the errors, details of these errors are listed later in the log.
* Activation of C:\ClientRecords.application resulted in exception. Following failure messages were detected:
+ Downloading file:///C:/Application Files/ClientRecords_1_0_0_5/ClientRecords.exe.manifest did not succeed.

COMPONENT STORE TRANSACTION FAILURE SUMMARY
No transaction error was detected.

WARNINGS
There were no warnings during this operation.

OPERATION PROGRESS STATUS
* [9/18/2013 1:39:51 PM] : Activation of C:\ClientRecords.application has started.
* [9/18/2013 1:39:51 PM] : Processing of deployment manifest has successfully completed.
* [9/18/2013 1:39:51 PM] : Installation of the application has started.

ERROR DETAILS
Following errors were detected during this operation.
* [9/18/2013 1:39:52 PM] System.Deployment.Application.DeploymentDownloadException (Unknown subtype)
- Downloading file:///C:/Application Files/ClientRecords_1_0_0_5/ClientRecords.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.DownloadApplicationManifest(AssemblyManifest deploymentManifest, String targetDir, Uri deploymentUri, IDownloadNotification notification, DownloadOptions options, Uri& appSourceUri, String& appManifestPath)
at System.Deployment.Application.DownloadManager.DownloadApplicationManifest(AssemblyManifest deploymentManifest, String targetDir, Uri deploymentUri, 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:\Application Files\ClientRecords_1_0_0_5\ClientRecords.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:\Application Files\ClientRecords_1_0_0_5\ClientRecords.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:\Application Files\ClientRecords_1_0_0_5\ClientRecords.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, Boolean useLongPath)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean useAsync)
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.

推荐答案

只是一个猜测,但该文件可能不在正确的位置或正在打包



C:/ Application文件/ ClientRecords_1_0_0_5 / ClientRecords.exe.manifest





我不点击一下。我使用WIX,因为这是现在看来唯一可行的安装。其他方法遇到很多问题(糟糕的回滚,不正确的包装等等)



虽然存在学习曲线,但如果你的应用很简单,它应该很容易获得一个WIX安装程序。这真的是非常强大,但要做一些非常酷的事情你需要理解它。



长话短说学习并使用WIX进行安装。



http://wixtoolset.org/ [ ^ ]
Well just a guess but that file is likely not in the right location or being packaged

C:/Application Files/ClientRecords_1_0_0_5/ClientRecords.exe.manifest


I do not use one click. I use WIX as that is the only viable installation now it seems. Other methods run into numerous issues (bad rollbacks, improper packaging etc etc.)

While there is a learning curve, if your application is simple it should be simple to get a WIX installer going. It really is quite powerful, but to do the really cool things you need to understand it.

Long story short learn and use WIX for your installation.

http://wixtoolset.org/[^]


这篇关于在客户机上安装Windows窗体应用程序的问题。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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