发布我的Windows应用程序

问题描述:

大家好,

对于任何可能在正确的方向上提供一些帮助或指导的人,请快速提问.当前,在我的工作场所,我们开发并发布了一个Windows应用程序,该应用程序将发送给我们的一位客户.问题是因为此应用程序是从我的发布时首先发布在旧机器(不是我的)上的,它会发布(或似乎)发布,然后在安装时会出现安装错误.

如果同一应用程序是从原始计算机上发布的,那么它不会出现任何问题,并且可以在任何时间/任何位置安装和使用.

我们认为这可能与个人计算机或视觉工作室安装的公司名称有关?但是不知道为什么会这样,我们怎么可能解决这个问题.

如果有人遇到类似问题或知道为什么会发生这种情况,那么任何建议都将不胜感激,因为这是保持该机器上的大量发布所不需要的努力.

谢谢提前

Nicholas Caseley-奥斯汀

Hi guys,

Have a quick question for anybody who may be able to offer some assistance or guidance in the right direction. Currently at my place of work we have a windows application I develop and publish to send to one of our clients. The problem is because this application was first publish on a old machine (not mine) whenever it is published from mine, it will publish ok (or seem to) then when it is installed, an installation error will appear.

If the same application is published from the original computer it was published from, no problems what so ever and can be installed and used when / where ever.

We think it may have something to do with company name of the pc or of our visual studios installs? But have no idea why this is happening and how we could possible fix this.

If anyone has encountered a similar problem or knows why this may be happening, any advice would be grateful as it is a lot of un-needed effort to keep publishing from this one machine.

Thanks is advance

Nicholas Caseley - Austin

您好,对于响应延迟.

发生的事件顺序包括:

在解决方案中-双击属性"(然后将加载属性)
导航到发布"标签(这是属性部分中的最后一个标签
确保所有设置正确无误,然后点击立即发布"按钮.

然后创建文件:

应用程序文件(文件夹)
dotnetfx35(文件夹)
Windowsinstaller3_1(文件夹)
企业(项目名称)
设置

运行安装程序后,安装开始并显示为要安装,然后出现错误消息

无法启动应用程序.请与应用程序供应商联系."

并给出下面列出的详细信息

Hello sorry for the delay in response.

The sequence of events that happens include:

In Solution - Double Clicking on ''Properties'' (This will then load properties)
Navigate to the ''Publish'' tab (this is the last tab in the properties section
Ensuring that all settings are correct and hitting the ''Publish Now'' button.

This then creates the files :

Application Files (folder)
dotnetfx35 (folder)
windowsinstaller3_1 (folder)
Enterprise (name of project)
Setup

Upon running setup, the installion starts and appears to install, then the error message appears

"Application cannot be started. Contact the application vendor."

And gives the details as listed below

PLATFORM VERSION INFO
	Windows 			: 6.1.7600.0 (Win32NT)
	Common Language Runtime 	: 4.0.30319.1
	System.Deployment.dll 		: 4.0.30319.1 (RTMRel.030319-0100)
	clr.dll 			: 4.0.30319.1 (RTMRel.030319-0100)
	dfdll.dll 			: 4.0.30319.1 (RTMRel.030319-0100)
	dfshim.dll 			: 4.0.31106.0 (Main.031106-0000)
SOURCES
	Deployment url			: file:///C:/Users/naustin/Desktop/Enterprise%202_0_0_7/Enterprise/publish/Enterprise.application
IDENTITIES
	Deployment Identity		: Enterprise.application, Version=2.0.1.2, Culture=neutral, PublicKeyToken=01a0c9b21695b9a9, 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:\Users\naustin\Desktop\Enterprise 2_0_0_7\Enterprise\publish\Enterprise.application resulted in exception. Following failure messages were detected:
		+ Value does not fall within the expected range.
COMPONENT STORE TRANSACTION FAILURE SUMMARY
	No transaction error was detected.
WARNINGS
	There were no warnings during this operation.
OPERATION PROGRESS STATUS
	* [10/03/2011 12:42:16] : Activation of C:\Users\naustin\Desktop\Enterprise 2_0_0_7\Enterprise\publish\Enterprise.application has started.
	* [10/03/2011 12:42:16] : Processing of deployment manifest has successfully completed.
ERROR DETAILS
	Following errors were detected during this operation.
	* [10/03/2011 12:42:16] System.ArgumentException
		- Value does not fall within the expected range.
		- Source: System.Deployment
		- Stack trace:
			at System.Deployment.Application.NativeMethods.CorLaunchApplication(UInt32 hostType, String applicationFullName, Int32 manifestPathsCount, String[] manifestPaths, Int32 activationDataCount, String[] activationData, PROCESS_INFORMATION processInformation)
			at System.Deployment.Application.ComponentStore.ActivateApplication(DefinitionAppId appId, String activationParameter, Boolean useActivationParameter)
			at System.Deployment.Application.SubscriptionStore.ActivateApplication(DefinitionAppId appId, String activationParameter, Boolean useActivationParameter)
			at System.Deployment.Application.ApplicationActivator.Activate(DefinitionAppId appId, AssemblyManifest appManifest, String activationParameter, Boolean useActivationParameter)
			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)
COMPONENT STORE TRANSACTION DETAILS
	* Transaction at [10/03/2011 12:42:16]
		+ System.Deployment.Internal.Isolation.StoreOperationSetDeploymentMetadata
			- Status: Set
			- HRESULT: 0x0
		+ System.Deployment.Internal.Isolation.StoreTransactionOperationType (27)
			- HRESULT: 0x0



除了计算机规格外,我无法提供更多信息,因为我的同事今天不在办公室,所以我无法访问他的机器,如果错误日志中看不到问题,那么我可以使用系统进行响应规格以查看是否是引起问题的原因.

如果我从他的机器上执行相同的发布方法,那么对我们来说很奇怪,如果应用程序的安装和运行正常,并且在任何安装的机器上都没有问题.

在此先感谢

尼克·奥斯丁



I cant give you any more information then that apart from the computer specs, as my colleague is not in the office today i do not have access to his machine, if the problem is not visible from the error log, then i can respond with system specs to see if that is cause the problem.

Is very weird for us as i mentioned before if i do the same publishing method from his machine the installation and running of the application is fine and it starts with no problems on any machine installed.

Thanks in advance

Nick Austin