ClickOnce: value not in expected range

I have a distributed application through ClickOnce. I updated several times and never had a problem. Since the last update (which was minor: label), when I launch my application from a message, click once on launch and offer me an error: Unable to start the application

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 traveled the length and width of the network, but I could not find a solution to my problem.

I donโ€™t even understand what the problem is.

I tried this solution without success: ClickOnce error: value does not fall into expected range

And this one, too, without success: "Value does not fall within the expected range" ClickOnce Deployment

Thanks for the help!

+8
clickonce
source share
2 answers

If you try to run clickonce on a UNC share, this may not work. I got the same result as yours, but I just tried using C: \ instead of our resource, and it works fine. Also, make sure you don't have ampersands in your deployment path, as this seems to mess it up.

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

+3
source share

This is a bit of a delay, but I found the only solution to solve my problem:

99.9% of the time, โ€œthe value does not fall within the expected rangeโ€ means that you have circular links or links to two different versions of the same assembly.

From here: https://social.msdn.microsoft.com/Forums/windows/en-US/e6c0a0ca-fbf0-47e2-8681-bc03471d09f6/value-does-not-fall-within-the-expected-range?forum= winformssetup

+1
source share

All Articles