存储元数据" CurrentBind"是无效的。错误 [英] Store metadata "CurrentBind" is not valid. Error

查看:354
本文介绍了存储元数据" CurrentBind"是无效的。错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在正在调试本地与VS2010中的抛出打开异常打破了点击一次应用程序的情况下,我遇到了以下错误:

In the context of a click-once application that is being debugged locally with exception breaking on "Thrown" turned on in VS2010, I am experiencing the following error:

Deployment Exception: "Store metadata "CurrentBind" is not valid."
   at System.Deployment.Application.ComponentStore.GetPropertyString(DefinitionAppId appId, String propName)

在我执行的code以下行:

when I execute the following line of code:

if (System.Deployment.Application.ApplicationDeployment.IsNetworkDeployed)

这异常被捕获并通过.NET code处理,并且应用程序遇到此错误后会不会崩溃。不幸的是,这个错误是跟进:

This exception is being caught and handled by .net code, and the application will not crash after experiencing this error. Unfortunately, this error is followed up by:

InvalidDeploymentException: "Application is not installed"
       at System.Deployment.Application.ApplicationDeployment..ctor(String fullAppId)

如果我继续涉水通过的例外,我得到另一个错误:

If I continue to wade through the exceptions, I get another error:

SynchronizationLockException: "Object synchronization method was called from an unsynchronized block of code"
       at Microsoft.Practices.Unity.SynchronizedLifetimeManager.TryExit()
@ ProvidedContainer.RegisterInstance(LoggerFacade);

最后:

ConfigurationErrorsException: "This element is not currently associated with any context"
    at System.Configuration.ConfigurationElement.get_EvaluationContext()

在构造

[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
public partial class InfrastructureDataServiceClient : System.ServiceModel.ClientBase<Infrastructure.DataServices.IInfrastructureDataService>, Infrastructure.DataServices.IInfrastructureDataService 
    {
        public InfrastructureDataServiceClient() {
    }
}

这些错误都是由.NET Framework code处理,并且不会波及到应用程序,但只要我必须打破对异常抛出我继续去通过这些错误,直到我的选择失去耐心,然后选择突破只在未处理的异常,此时应用程序完全加载。

These errors are all handled by the .net framework code and don't ripple into the application, but as long as I have the option to break on exception "Thrown" I continue to go through these errors until I lose patience and choose to break only on unhandled exceptions, at which point the app fully loads.

这是发生在我身上,在过去,在那个时候,我不得不彻底重新安装Visual Studio,但在那之后的罚款。我宁愿不这样做,因为这是耗费时间和我的VS安装pretty的定制。此外,我的同事没有遇到同样的错误,这样告诉我,有什么独特之处我的环境。

This has happened to me in the past, and at that time I had to completely re-install visual studio, but it worked fine after that. I'd rather not do that, as it is time consuming and my VS installation is pretty customized. Also, my co-workers are not experiencing the same error, so that tells me that there is something unique about my environment.

我经历了最近在调试一个Visual Studio挂了,只好杀死devenv的过程中,可能会起到一定的作用,但很难说,因为我最近打开的抛出期权的突破。我已经尝试删除锁文件,但没有任何效果。

I experienced a visual studio hang recently when debugging, and had to kill the devenv process, that might play a role, but it's hard to say because I recently turned on the break on thrown option. I've already tried to delete the suo files, but that had no effect.

我已经安装了以下插件: ReSharper的,.net反射,团队资源管理器,TFS电动工具,主题管理器

I have the following addons installed: Resharper, .Net Reflector, Team Explorer, TFS Power Tools, Theme Manager

推荐答案

我所做的,以解决此问题是重新安装Visual Studio中。这样做之后,异常就走开了。

What I did to resolve this issue was reinstall visual studio. After doing that, the exceptions went away.

这篇关于存储元数据&QUOT; CurrentBind&QUOT;是无效的。错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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