ClickOnce:值不在预期范围内 [英] ClickOnce: Value does not fall within the expected range

查看:205
本文介绍了ClickOnce:值不在预期范围内的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个通过ClickOnce的分布式应用程序。我更新了几次,从来没有问题。
自上次更新以来(次要的:标签),当我从帖子中运行应用程序时,单击一次启动并提示我一个错误:
应用程序无法启动

I have a distributed application via ClickOnce. I updated several times and there has never been a problem. Since the last update (which was minor: a label), when I run my application from a post, click once start and prompt me an error: Application Cannot Be started

当我查看日志时,会收到以下消息:

When I look at the logs I get the following message:

OPERATION PROGRESS STATUS
* [04/10/2012 13:24:33] : Activation of C:\Users\xxxxxxxxx.appref-ms| has started.
* [04/10/2012 13:24:33] : Performing necessary update check as specified by the deployment.

ERROR DETAILS
Following errors were detected during this operation.
* [04/10/2012 13:24:33] 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.ProcessOrFollowShortcut(String      shortcutFile, String& errorPageUrl, TempFile& deployFile)
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)

我走过了网的长度和广度,但没有找到解决方案解决我的问题。

I have traveled the length and breadth of net, but I have not found a solution to my problem.

我什至都不知道这个问题是什么。

I do not even understand what is this problem.

我尝试了此解决方案,但没有成功:
ClickOnce错误:值不会下降在预期范围内

I tried this solution without success: ClickOnce error: Value does not fall within the expected range

这也没有成功:值不属于e预期范围 ClickOnce部署

谢谢您的帮助!

推荐答案

如果您尝试在UNC共享上运行clickonce,则可能不起作用。
我得到的结果与上述相同,但我只是尝试部署到C:\而不是我们的共享,并且运行良好。另外,请检查并确保没有&

If you are trying to run the clickonce on a UNC share, it may not work. I was getting the same result as yours above, but I just tried deploying to C:\ instead of our share, and it runs just fine. Also, check to make sure you don't have any & ampersands in your deploy path as this seems to muck it up.

也请检查此帖子中要检查的内容。
值不属于预期范围 ClickOnce部署

Also check out the list of things to check for on this post. "Value Does not fall in the expected range" ClickOnce Deployment

这篇关于ClickOnce:值不在预期范围内的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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