ClickOnce的错误:值没有在预期范围内 [英] ClickOnce error: Value does not fall within the expected range

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

问题描述

收到此错误上所有的ClickOnce应用程序启动某个用户。这开始了版本升级后发生(但碰巧没有其他人)。

我后来试图改变的版本号,添加/删除,注册表擦洗,清除本地设置\ apps文件夹等...仍然没有运气。

<一个href="http://social.msdn.microsoft.com/Forums/en-US/winformssetup/thread/9d937bb0-4c1b-4a0d-bd5d-d0d15222c534">This文章点到用户的配置文件损坏,但我重新创建这个用户是不是一种选择。有没有在清理这件事的任何其他的想法?

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

来源
    部署URL: file:///C:/Documents%20and%20Settings/<username>/Start%20Menu/Programs/<programname>/<programname>.ap$p$pf-ms%7C

错误摘要
    下面是错误的摘要,这些错误的细节将在后面在日志中列出。
    *的\\ NDP13 \ C \的Documents and Settings \&LT激活;用户名&gt; \开始菜单\程序\&LT; PROGRAMNAME&GT; \&LT; PROGRAMNAME&GT; .AP preF-MS |导致异常。检测到以下错误信息:
    +值没有在预期范围内。

组件存储事务失败摘要
    被检测到任何事务错误。

警告
    有此操作过程中没有任何警告。

操作进度状态
    * [7/22/2009上午十时35分30秒]:对\\ NDP13 \ C \的Documents and Settings \&LT激活;用户名&gt; \开始菜单\程序\&LT; PROGRAMNAME&GT; \&LT; PROGRAMNAME&GT; .AP preF-MS |已经开始。

错误详细
    此操作过程中检测到以下错误。
    * [7/22/2009上午十时35分30秒] System.ArgumentException
     - 值没有在预期范围之内。
     - 来源:System.Deployment
    	- 堆栈跟踪:
    在System.Deployment.Internal.Isolation.IsolationInterop.GetUserStore(UInt32的标志,IntPtr的hToken,的Guid和放大器; RIID)
    在System.Deployment.Internal.Isolation.IsolationInterop.GetUserStore()
    在System.Deployment.Application.ComponentStore..ctor(ComponentStoreType的storetype,SubscriptionStore subStore)
    在System.Deployment.Application.SubscriptionStore..ctor(字符串deployPath,字符串TEMPPATH,ComponentStoreType的storetype)
    在System.Deployment.Application.SubscriptionStore.get_CurrentUser()
    在System.Deployment.Application.ApplicationActivator.PerformDeploymentActivati​​on(URI activati​​onUri,布尔isShortcut,字符串textualSubId,字符串deploymentProviderUrlFromExtension,BrowserSettings browserSettings,字符串和放大器; errorPageUrl)
    在System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(对象状态)

组件存储交易明细
    无交易信息是可用的。
 

解决方案

这个问题神秘地消失后,反复删除该文件夹,并试图重新安装。或许有一个重启扔在那里了。

Getting this error on ALL ClickOnce application launches for a certain user. This started happening after a version upgrade (but happens to no one else).

I've tried subsequently changing the version number, add/remove, registry scrub, clearing Local Settings\Apps folder, etc... Still no luck.

This article points to a user profile corruption, but I recreating this user isn't an option. Are there any other ideas on cleaning this up?

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

SOURCES
    Deployment url			: file:///C:/Documents%20and%20Settings/<username>/Start%20Menu/Programs/<programname>/<programname>.appref-ms%7C

ERROR SUMMARY
    Below is a summary of the errors, details of these errors are listed later in the log.
    * Activation of \\NDP13\C\Documents and Settings\<username>\Start Menu\Programs\<programname>\<programname>.appref-ms| 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
    * [7/22/2009 10:35:30 AM] : Activation of \\NDP13\C\Documents and Settings\<username>\Start Menu\Programs\<programname>\<programname>.appref-ms| has started.

ERROR DETAILS
    Following errors were detected during this operation.
    * [7/22/2009 10:35:30 AM] System.ArgumentException
    	- Value does not fall within the expected range.
    	- Source: System.Deployment
    	- Stack trace:
    		at System.Deployment.Internal.Isolation.IsolationInterop.GetUserStore(UInt32 Flags, IntPtr hToken, Guid& riid)
    		at System.Deployment.Internal.Isolation.IsolationInterop.GetUserStore()
    		at System.Deployment.Application.ComponentStore..ctor(ComponentStoreType storeType, SubscriptionStore subStore)
    		at System.Deployment.Application.SubscriptionStore..ctor(String deployPath, String tempPath, ComponentStoreType storeType)
    		at System.Deployment.Application.SubscriptionStore.get_CurrentUser()
    		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
    No transaction information is available.

解决方案

The problem mysteriously disappeared after repeatedly deleting that folder, and attempting to reinstall. Perhaps there was a reboot thrown in there too.

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

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