Vic*_*ers 5 .net deployment debugging clickonce
在本地调试的单击一次应用程序的上下文中,在VS2010中打开"Thrown"时异常中断,我遇到以下错误:
Deployment Exception: "Store metadata "CurrentBind" is not valid."
at System.Deployment.Application.ComponentStore.GetPropertyString(DefinitionAppId appId, String propName)
Run Code Online (Sandbox Code Playgroud)
当我执行以下代码行时:
if (System.Deployment.Application.ApplicationDeployment.IsNetworkDeployed)
Run Code Online (Sandbox Code Playgroud)
此异常由.net代码捕获和处理,并且在遇到此错误后应用程序不会崩溃.不幸的是,这个错误后跟:
InvalidDeploymentException: "Application is not installed"
at System.Deployment.Application.ApplicationDeployment..ctor(String fullAppId)
Run Code Online (Sandbox Code Playgroud)
如果我继续涉及异常,我会收到另一个错误:
SynchronizationLockException: "Object synchronization method was called from an unsynchronized block of code"
at Microsoft.Practices.Unity.SynchronizedLifetimeManager.TryExit()
@ ProvidedContainer.RegisterInstance(LoggerFacade);
Run Code Online (Sandbox Code Playgroud)
最后:
ConfigurationErrorsException: "This element is not currently associated with any context"
at System.Configuration.ConfigurationElement.get_EvaluationContext()
Run Code Online (Sandbox Code Playgroud)
在...的构造函数中
[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() {
}
}
Run Code Online (Sandbox Code Playgroud)
这些错误都是由.net框架代码处理的,并没有波及到应用程序中,但只要我可以选择中断"Thrown"异常,我会继续经历这些错误,直到我失去耐心并选择破解仅在未处理的异常时,应用程序完全加载.
这在过去发生在我身上,当时我不得不完全重新安装visual studio,但之后它运行良好.我宁愿不这样做,因为它耗时并且我的VS安装非常自定义.此外,我的同事没有遇到同样的错误,因此告诉我,我的环境有一些独特之处.
我最近在调试时经历了一个视觉工作室挂起,并且不得不杀死可能发挥作用的devenv进程,但是很难说因为我最近打开了抛出选项的中断.我已经尝试删除suo文件,但这没有任何效果.
我安装了以下插件:Resharper,.Net Reflector,团队资源管理器,TFS电动工具,主题管理器
我为解决此问题所做的就是重新安装 Visual Studio。这样做之后,异常就消失了。
| 归档时间: |
|
| 查看次数: |
3451 次 |
| 最近记录: |