C# Visual Studio 2017:更新windows 10后无法打开ASP.NET MVC项目
我正在使用Visual Studio 2017通过ASP.NET MVC框架开发Web应用程序。我一路打开我的项目都没有问题。然而,昨天我刚刚更新了我的Windows10。今天,我无法使用以下内容打开以前的visual studio项目C# Visual Studio 2017:更新windows 10后无法打开ASP.NET MVC项目,c#,asp.net,asp.net-mvc,windows-10,visual-studio-2017,C#,Asp.net,Asp.net Mvc,Windows 10,Visual Studio 2017,我正在使用Visual Studio 2017通过ASP.NET MVC框架开发Web应用程序。我一路打开我的项目都没有问题。然而,昨天我刚刚更新了我的Windows10。今天,我无法使用以下内容打开以前的visual studio项目 An exception was encountered while constructing the content of this frame. This information is also logged in "C:\Users\chan.yoong
An exception was encountered while constructing the content of this frame. This information is also logged in "C:\Users\chan.yoonghon\AppData\Roaming\Microsoft\VisualStudio\15.0_3a4e3740\ActivityLog.xml".
Exception details:
System.ArgumentException: The number of generic arguments provided doesn't equal the arity of the generic type definition.
Parameter name: instantiation
at System.RuntimeType.MakeGenericType(Type[] instantiation)
at Microsoft.VisualStudio.Composition.Reflection.TypeRef.get_ResolvedType()
at Microsoft.VisualStudio.Composition.RuntimeComposition.RuntimeImport.get_ImportingSiteType()
at Microsoft.VisualStudio.Composition.RuntimeComposition.RuntimeImport.get_ImportingSiteTypeWithoutCollection()
at Microsoft.VisualStudio.Composition.RuntimeComposition.RuntimeImport.get_IsLazy()
at Microsoft.VisualStudio.Composition.RuntimeComposition.RuntimeImport.get_LazyFactory()
at Microsoft.VisualStudio.Composition.RuntimeExportProviderFactory.RuntimeExportProvider.GetValueForImportSite(RuntimePartLifecycleTracker importingPartTracker, RuntimeImport import)
at Microsoft.VisualStudio.Composition.RuntimeExportProviderFactory.RuntimeExportProvider.RuntimePartLifecycleTracker.SatisfyImports()
at Microsoft.VisualStudio.Composition.ExportProvider.PartLifecycleTracker.SatisfyImmediateImports()
at Microsoft.VisualStudio.Composition.ExportProvider.PartLifecycleTracker.MoveNext(PartLifecycleState nextState)
at Microsoft.VisualStudio.Composition.ExportProvider.PartLifecycleTracker.MoveToState(PartLifecycleState requiredState)
at Microsoft.VisualStudio.Composition.ExportProvider.PartLifecycleTracker.GetValueReadyToExpose()
at Microsoft.VisualStudio.Composition.ExportProvider.<>c__DisplayClass53_0.<CreateExport>b__0()
at System.Lazy`1.CreateValue()
at System.Lazy`1.LazyInitValue()
at System.Lazy`1.get_Value()
at Microsoft.VisualStudio.Composition.ExportProvider.<>c__DisplayClass70_0`2.<GetExports>b__1()
at System.Lazy`1.CreateValue()
at System.Lazy`1.LazyInitValue()
at System.Lazy`1.get_Value()
at Microsoft.VisualStudio.Composition.ExportProvider.GetExportedValue[T]()
at Microsoft.VisualStudio.ComponentModelHost.ComponentModel.GetService[T]()
at Microsoft.Internal.VisualStudio.PlatformUI.PivotNavigatorServices.get_AttachedCollectionService()
at Microsoft.VisualStudio.PlatformUI.SolutionNavigatorPane.RefillNavigator()
at Microsoft.VisualStudio.PlatformUI.SolutionNavigatorPane.OnToolWindowCreated()
at Microsoft.VisualStudio.Shell.Package.CreateToolWindow(Type toolWindowType, Int32 id, UInt32 flags)
at Microsoft.VisualStudio.Shell.Package.CreateToolWindow(Type toolWindowType, Int32 id, ProvideToolWindowAttribute tool)
at Microsoft.VisualStudio.Shell.Package.FindToolWindow(Type toolWindowType, Int32 id, Boolean create, ProvideToolWindowAttribute tool)
at Microsoft.VisualStudio.Shell.Package.CreateToolWindow(Guid& toolWindowType, Int32 id)
at Microsoft.VisualStudio.Shell.Package.Microsoft.VisualStudio.Shell.Interop.IVsToolWindowFactory.CreateToolWindow(Guid& toolWindowType, UInt32 id)
at Microsoft.VisualStudio.Platform.WindowManagement.WindowFrame.ConstructContent()
我建议您修复或重新安装visual studio 转到开始>>Visual Studio安装程序>>运行它>>单击“启动>>修复”旁边的图标
The number of generic arguments provided doesn't equal the arity of the generic type definition.
Parameter name: instantiation