当前位置:  开发笔记 > 运维 > 正文

ClickOnce错误:值不在预期范围内

如何解决《ClickOnce错误:值不在预期范围内》经验,为你挑选了6个好方法。

在针对特定用户的所有ClickOnce应用程序启动时出现此错误.这在版本升级后开始发生(但不会发生在其他人身上).

我已经尝试过随后更改版本号,添加/删除,注册表清理,清除Local Settings\Apps文件夹等...仍然没有运气.

本文指向用户配置文件损坏,但我重新创建此用户不是一个选项.有没有其他想法清理这个?

 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//Start%20Menu/Programs//.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\\Start Menu\Programs\\.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\\Start Menu\Programs\\.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. 

Tony.. 47

你可以试试这个:

rundll32 %windir%\system32\dfshim.dll CleanOnlineAppCache

好一个.你能否解释这条线实际上做了什么? (6认同)

多年以后,它对我有用.傻到这还是个问题. (2认同)


spud.. 22

我从控制面板卸载了应用程序,然后重新安装,这为我解决了问题.



1> Tony..:

你可以试试这个:

rundll32 %windir%\system32\dfshim.dll CleanOnlineAppCache


好一个.你能否解释这条线实际上做了什么?
多年以后,它对我有用.傻到这还是个问题.

2> spud..:

我从控制面板卸载了应用程序,然后重新安装,这为我解决了问题.



3> Pierre Arnau..:

我在Windows 7 x64机器上也遇到过这个错误.我终于能够通过完全删除注册表中的任何引用(但这还不够)然后清除来正确安装我的ClickOnce应用程序%user%\AppData\Local\Apps.



4> Lynn..:

我意识到这是一个老问题,但我偶然发现了同样的问题并找到了一个不同的解决方案:原因是ClickOnce网络安装路径中的"&".Microsoft已确认此问题并声明他们无法解决此问题:Microsoft Bug Report



5> TheSoftwareJ..:

重复删除该文件夹并尝试重新安装后,问题神秘地消失了.也许那里也有重新启动.


不幸的是,这是我经常修复ClickOnce wankery.

6> 小智..:

简单的修复步骤:

1)从控制面板卸载

2)删除"2.0"位于的文件夹%user%\AppData\Local\Apps.您现在应该可以重新安装

推荐阅读
mobiledu2402852413
这个屌丝很懒,什么也没留下!
DevBox开发工具箱 | 专业的在线开发工具网站    京公网安备 11010802040832号  |  京ICP备19059560号-6
Copyright © 1998 - 2020 DevBox.CN. All Rights Reserved devBox.cn 开发工具箱 版权所有