问题描述
我遇到一个问题,VS2015经常锁定我(每天3-4次),并要求我通过任务管理器终止该进程并重新启动它.但是,一旦重新启动,我将无法编译.我得到的错误是:
"操作无法完成.参数错误. "
在活动日志中,我发现许多错误,所有错误都相当长.第一个复制到下面:
无法导入工厂提供程序:System.Re flection.ReflectionTypeLoadException:无法加载一种或多种请求的类型.检索LoaderExceptions属性以获取更多信息. (前4行重复了29次) 在过去的版本中,我从未见过这种行为(崩溃/重启后无法编译),但是自从我升级到VS2015以来,这一直是一个问题. I have a problem where VS2015 locks up on me quite frequently (3-4 times per day) and requires me to kill the process via Task Manager and restart it. Once I restart, though, I can't compile. The error I get is: "The operation could not be completed. The parameter is incorrect. " Looking inthe activity log, I get a number of errors, all of them quite long. The first one is copied below: Failed to import factory providers: System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information. (the preceding 4 lines are repeated 29 times) I've never seen this kind of behavior (being unable to compile after a crash/restart) in past versions, but it's been a problem since I upgraded to VS2015. 这篇关于VS2015崩溃需要两次重启的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!
在System.Reflection.RuntimeModule.GetTypes(RuntimeModule模块)上
在System.Reflection.RuntimeModule.GetTypes()
在System.Reflection.Assembly.GetTypes()
at System.ComponentModel.Composition.Hosting.AssemblyCatalog.get_InnerCatalog()
at System.ComponentModel.Composition.Hosting.AssemblyCatalog.GetExports(ImportDefinition定义)
在System.ComponentModel.Composition.Hosting.CatalogExportProvider.InternalGetExportsCore(ImportDefinition定义,AtomicComposition atomicComposition)中,
在System.ComponentModel.Composition.Hosting.CatalogExportProvider.InnerCatalogExportProvider.GetExportsCore(ImportDefinition定义,AtomicComposition atomicComposition)中,
at System.ComponentModel.Composition.Hosting.ExportProvider.TryGetExportsCore(ImportDefinition定义,AtomicComposition atomicComposition,IEnumerable`1& exports)
在System.ComponentModel.Composition.Hosting.CatalogExportProvider.GetExportsCore(ImportDefinition定义,AtomicComposition atomicComposition)中
at System.ComponentModel.Composition.Hosting.ExportProvider.TryGetExportsCore(ImportDefinition定义,AtomicComposition atomicComposition,IEnumerable`1& exports)
at System.ComponentModel.Composition.Hosting.ExportProvider.GetExports(ImportDefinition定义,AtomicComposition atomicComposition)
at System.ComponentModel.Composition.Hosting.AggregateExportProvider.GetExportsCore(ImportDefinition定义,AtomicComposition atomicComposition)
at System.ComponentModel.Composition.Hosting.ExportProvider.TryGetExportsCore(ImportDefinition定义,AtomicComposition atomicComposition,IEnumerable`1& exports)
在System.ComponentModel.Composition.Hosting.CompositionContainer.GetExportsCore(ImportDefinition定义,AtomicComposition atomicComposition)中
at System.ComponentModel.Composition.Hosting.ExportProvider.TryGetExportsCore(ImportDefinition定义,AtomicComposition atomicComposition,IEnumerable`1& exports)
at System.ComponentModel.Composition.Hosting.ExportProvider.GetExports(ImportDefinition定义,AtomicComposition atomicComposition)
在System.ComponentModel.Composition.Hosting.ExportProvider.GetExportsCore(类型类型,元数据类型ViewType,字符串contractName,ImportCardinality基数)
at System.ComponentModel.Composition.Hosting.ExportProvider.GetExportsCore [T](String contractName)
在Microsoft.PythonTools.Interpreter.InterpreterOptionsService.LoadProviders(SettingsStore存储区,IServiceProvider serviceProvider)中
System.IO.FileNotFoundException:无法加载文件或程序集'Microsoft.VisualStudio.VsInteractiveWindow,Version = 1.0.0.0,Culture = neutral,PublicKeyToken = 31bf3856ad364e35'或其依赖项之一.
系统找不到指定的文件.文件名:"Microsoft.VisualStudio.VsInteractiveWindow,版本= 1.0.0.0,区域性=中性,PublicKeyToken = 31bf3856ad364e35"
WRN:程序集绑定日志记录已关闭.要启用程序集绑定失败日志记录,请将注册表值[HKLM \ Software \ Microsoft \ Fusion!EnableLog](DWORD)设置为1.
注意:程序集绑定失败日志记录会带来一些性能损失.要关闭此功能,请删除注册表值[HKLM \ Software \ Microsoft \ Fusion!EnableLog].
at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
at System.Reflection.RuntimeModule.GetTypes()
at System.Reflection.Assembly.GetTypes()
at System.ComponentModel.Composition.Hosting.AssemblyCatalog.get_InnerCatalog()
at System.ComponentModel.Composition.Hosting.AssemblyCatalog.GetExports(ImportDefinition definition)
at System.ComponentModel.Composition.Hosting.CatalogExportProvider.InternalGetExportsCore(ImportDefinition definition, AtomicComposition atomicComposition)
at System.ComponentModel.Composition.Hosting.CatalogExportProvider.InnerCatalogExportProvider.GetExportsCore(ImportDefinition definition, AtomicComposition atomicComposition)
at System.ComponentModel.Composition.Hosting.ExportProvider.TryGetExportsCore(ImportDefinition definition, AtomicComposition atomicComposition, IEnumerable`1& exports)
at System.ComponentModel.Composition.Hosting.CatalogExportProvider.GetExportsCore(ImportDefinition definition, AtomicComposition atomicComposition)
at System.ComponentModel.Composition.Hosting.ExportProvider.TryGetExportsCore(ImportDefinition definition, AtomicComposition atomicComposition, IEnumerable`1& exports)
at System.ComponentModel.Composition.Hosting.ExportProvider.GetExports(ImportDefinition definition, AtomicComposition atomicComposition)
at System.ComponentModel.Composition.Hosting.AggregateExportProvider.GetExportsCore(ImportDefinition definition, AtomicComposition atomicComposition)
at System.ComponentModel.Composition.Hosting.ExportProvider.TryGetExportsCore(ImportDefinition definition, AtomicComposition atomicComposition, IEnumerable`1& exports)
at System.ComponentModel.Composition.Hosting.CompositionContainer.GetExportsCore(ImportDefinition definition, AtomicComposition atomicComposition)
at System.ComponentModel.Composition.Hosting.ExportProvider.TryGetExportsCore(ImportDefinition definition, AtomicComposition atomicComposition, IEnumerable`1& exports)
at System.ComponentModel.Composition.Hosting.ExportProvider.GetExports(ImportDefinition definition, AtomicComposition atomicComposition)
at System.ComponentModel.Composition.Hosting.ExportProvider.GetExportsCore(Type type, Type metadataViewType, String contractName, ImportCardinality cardinality)
at System.ComponentModel.Composition.Hosting.ExportProvider.GetExportsCore[T](String contractName)
at Microsoft.PythonTools.Interpreter.InterpreterOptionsService.LoadProviders(SettingsStore store, IServiceProvider serviceProvider)
System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.VisualStudio.VsInteractiveWindow, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies.
The system cannot find the file specified. File name: 'Microsoft.VisualStudio.VsInteractiveWindow, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
WRN: Assembly binding logging is turned OFF. To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging. To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].