• vs2012 设计器 视图异常


    WPF 开发/(其他xaml app 的开发) 的时候 设计视图功能非常方便  不过有时候经常遇到 设计器加载失败的情况,原因很多  很多时候是代码问题导致,设计器无法展现视图,也有sliverlight sdk 与WP sdk  的安装 导致 设计器打不开 网上这种解决方案很多   ,不过在随着win8/wp8开发 VS2012开始普及, VS2012 出现了 新的视图异常  

    异常如下: Microsoft.Internal.Assumes+InternalErrorException: Internal error occurred. Additional information: ''. at    System.ComponentModel.Composition.Hosting.ImportEngine.InPrerequisiteLoop() at System.ComponentModel.Composition.Hosting.ImportEngine.TrySatisfyImportsStateMachine(PartManager partManager, ComposablePart part) at

    System.ComponentModel.Composition.Hosting.ImportEngine.TrySatisfyImports(PartManager partManager, ComposablePart part, Boolean shouldTrackImports) at System.ComponentModel.Composition.Hosting.ImportEngine.SatisfyImports(ComposablePart part) at     System.ComponentModel.Composition.Hosting.CompositionServices.GetExportedValueFromComposedPart(ImportEngine engine, ComposablePart part, ExportDefinition definition) at System.ComponentModel.Composition.Hosting.CatalogExportProvider.GetExportedValue(CatalogPart part, ExportDefinition export, Boolean isSharedPart) at System.ComponentModel.Composition.Hosting.CatalogExportProvider.CatalogExport.GetExportedValueCore() at System.ComponentModel.Composition.Primitives.Export.get_Value() at System.ComponentModel.Composition.ExportServices.GetCastedExportedValue[T](Export export) at System.ComponentModel.Composition.ExportServices.<>c__DisplayClass4`2.<CreateStronglyTypedLazyOfTM>b__1() at System.Lazy`1.CreateValue() at System.Lazy`1.LazyInitValue() at System.Lazy`1.get_Value() at Microsoft.VisualStudio.Text.Utilities.GuardedOperations.InvokeMatchingFactories[TExtensionInstance,TExtensionFactory,TMetadataView](IEnumerable`1 lazyFactories, Func`2 getter,

    这种异常之后  整个VS 视图设计 崩溃,  即时新建的xaml项目 也不能看到视图 ,这给开发带来很多麻烦 ,很多人重装,网上也有说更新VS2012 至3.0  这都比较麻烦

    郁闷很久  还是在国外一网站上找了到 一个方法 

    先关闭Vs2012 然后 打开注册表  找到 注册表 的 相关 目录  HKEY_CURRENT_USERSoftwareMicrosoftVSCommon  HKEY_CURRENTUSERSoftwareMicrosoftVisualStudio 删除 这2个 目录下的所有 文件  [这是VS2012 的配置文件]    这以为着初始了VS2012的设置 ,重启VS2012后 要重新设置相关配置, 此时打开 或者新建项目   视图显示正常  问题解决 希望对遇到同样问题的朋友 有所帮助..

  • 相关阅读:
    c# 面相对象4-多态性
    c# 面相对象3-之继承性
    c# 面相对象2-之封装性
    面向对象和面向过程的区别
    <title>下拉菜单</title>
    15-07-31 javascript--事件
    DOM操作
    格式与布局
    c# 函数相关练习
    c# 哈希表集合;函数
  • 原文地址:https://www.cnblogs.com/Utionsoft/p/3672037.html
Copyright © 2020-2023  润新知