Store metadata "CurrentBind" is not valid. Error <p>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:</p> <pre><code>Deployment Exception: "Store metadata "CurrentBind" is not valid." at System.Deployment.Application.ComponentStore.GetPropertyString(DefinitionAppId appId, String propName) </code></pre> <p>when I execute the following line of code:</p> <pre><code>if (System.Deployment.Application.ApplicationDeployment.IsNetworkDeployed) </code></pre> <p>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:</p> <pre><code>InvalidDeploymentException: "Application is not installed" at System.Deployment.Application.ApplicationDeployment..ctor(String fullAppId) </code></pre> <p>If I continue to wade through the exceptions, I get another error:</p> <pre><code>SynchronizationLockException: "Object synchronization method was called from an unsynchronized block of code" at Microsoft.Practices.Unity.SynchronizedLifetimeManager.TryExit() @ ProvidedContainer.RegisterInstance(LoggerFacade); </code></pre> <p>and finally:</p> <pre><code>ConfigurationErrorsException: "This element is not currently associated with any context" at System.Configuration.ConfigurationElement.get_EvaluationContext() </code></pre> <p>in the constructor of </p> <pre><code>[System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] public partial class InfrastructureDataServiceClient : System.ServiceModel.ClientBase&lt;Infrastructure.DataServices.IInfrastructureDataService&gt;, Infrastructure.DataServices.IInfrastructureDataService { public InfrastructureDataServiceClient() { } } </code></pre> <p>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.</p> <p>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.</p> <p>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.</p> <p>I have the following addons installed: Resharper, .Net Reflector, Team Explorer, TFS Power Tools, Theme Manager</p>