"存储元数据" CurrentBind"无效"在ClickOnce应用程序的调试 [英] "Store metadata "CurrentBind" is not valid" in debug of ClickOnce application
问题描述
当我尝试访问Application.CommonAppDataPath我收到此错误信息:
When I try to access "Application.CommonAppDataPath" i get this error message:
System.Deployment:存储元数据 CurrentBind是无效的。
System.Deployment: Store metadata "CurrentBind" is not valid
堆栈跟踪:
在 System.Deployment.Application.ComponentStore.GetPropertyString(DefinitionAppId APPID,字符串作为propName)
at System.Deployment.Application.ComponentStore.GetPropertyString(DefinitionAppId appId, String propName)
这是只有在调试。当作为实际公布的ClickOnce应用程序运行正常工作。
This is only in Debug. When running as an actual published clickonce application it works fine.
在调试时在本地我怎样才能摆脱这种异常?
How can I get rid of this exception when debugging locally?
推荐答案
我有一个类似的问题(如jpierson的评论)具有相同的异常'CurrentBind无效的ApplicationDeployment.IsNetworkDeployed。我选中选项|调试|一般|只是我的code。检查回来后一切工作正常。
I had a similar issue (like jpierson's comment) with the same exception '"CurrentBind" not valid' on ApplicationDeployment.IsNetworkDeployed. I had unchecked "Options|Debugging|General|Just My Code". After checking it back all worked fine.
注:其他一些讨论话题曾建议重新安装VS2010。我这样做,但没有帮助。我不知道,如果重新安装也是的Fator。
NOTE: Some other discussion threads had suggested reinstalling VS2010. I did that but did not help. I don't know if reinstalling was also the fator.
这篇关于"存储元数据" CurrentBind"无效"在ClickOnce应用程序的调试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!