Код: Выделить всё
Aplicación: devenv.exe
Versión de Framework: v4.0.30319
Descripción: el proceso terminó debido a una excepción no controlada.
Información de la excepción: System.AccessViolationException
en Microsoft.VisualStudio.Shell.Interop.IVsProject.AddItem(UInt32, Microsoft.VisualStudio.Shell.Interop.VSADDITEMOPERATION, System.String, UInt32, System.String[], IntPtr, Microsoft.VisualStudio.Shell.Interop.VSADDRESULT[])
en Microsoft.VisualStudio.Dialogs.ServiceHelper.AddNewItem(Microsoft.VisualStudio.TemplateProviders.Templates.IVsTemplate, System.String, Microsoft.Internal.VisualStudio.Shell.Interop.VSNEWPROJECTDLGCTX, Microsoft.VisualStudio.Shell.Interop.IVsProject, UInt32, Boolean, UInt32, Boolean, System.String, Microsoft.VisualStudio.Dialogs.OpenWithEditorSelection, Boolean)
en Microsoft.VisualStudio.NewProjectDialog.LegacyItemTemplateProvider+d__14.MoveNext()
en System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
en System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
en System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.Run()
en Microsoft.VisualStudio.Threading.JoinableTaskFactory+SingleExecuteProtector.TryExecute()
en Microsoft.VisualStudio.Threading.JoinableTask.CompleteOnCurrentThread()
en Microsoft.VisualStudio.Threading.JoinableTask`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].CompleteOnCurrentThread()
en Microsoft.VisualStudio.Dialogs.ServiceHelper.AddNewItem(Microsoft.VisualStudio.TemplateProviders.Templates.IVsTemplate, System.String, Microsoft.Internal.VisualStudio.Shell.Interop.VSNEWPROJECTDLGCTX, Microsoft.VisualStudio.Shell.Interop.IVsProject, UInt32, Boolean, UInt32, Boolean, System.String, Microsoft.VisualStudio.Dialogs.OpenWithEditorSelection, Boolean)
en Microsoft.VisualStudio.Dialogs.SVsDialogService.InvokeDialog(Microsoft.Internal.VisualStudio.Shell.Interop.VSNEWPROJECTDLGINFO, System.String ByRef)
en Microsoft.VisualStudio.Shell.Interop.IVsUIHierarchy.ExecCommand(UInt32, System.Guid ByRef, UInt32, UInt32, IntPtr, IntPtr)
en Microsoft.Internal.VisualStudio.PlatformUI.HierarchyUtilities+c__DisplayClass35_0.b__1()
en Microsoft.VisualStudio.ErrorHandler.CallWithCOMConvention(System.Func`1, Boolean, Boolean)
en Microsoft.Internal.VisualStudio.PlatformUI.HierarchyUtilities.ExecHierParentChain(Microsoft.VisualStudio.Shell.IVsHierarchyItemManager, Microsoft.VisualStudio.Shell.Interop.IVsUIHierarchy, Microsoft.VisualStudio.Shell.Interop.IVsUIHierarchy, UInt32, System.Guid ByRef, UInt32, UInt32, IntPtr, IntPtr)
en Microsoft.VisualStudio.PlatformUI.PivotNavigatorCommandTarget.Exec(System.Guid ByRef, UInt32, UInt32, IntPtr, IntPtr)
en Microsoft.VisualStudio.PlatformUI.SolutionNavigatorCommandTarget.Exec(System.Guid ByRef, UInt32, UInt32, IntPtr, IntPtr)
en Microsoft.VisualStudio.Platform.WindowManagement.DocumentObjectSite.g__TryHandleExec|82_0(System.Object, Int32 ByRef, c__DisplayClass82_0 ByRef)
en Microsoft.VisualStudio.Platform.WindowManagement.DocumentObjectSite.Exec(System.Guid ByRef, UInt32, UInt32, IntPtr, IntPtr)
en Microsoft.VisualStudio.Platform.WindowManagement.WindowFrame.Exec(System.Guid ByRef, UInt32, UInt32, IntPtr, IntPtr)
- Запуск Visual Studio от имени администратора.
- Проверка поврежденных шаблонов или отсутствуют зависимости.
- Сброс настроек Visual Studio.
Среда:
- Visual Studio версия: 2022
- ОС: Windows 11 24H2
- .NET Framework: v4.0.30319
Подробнее здесь: https://stackoverflow.com/questions/790 ... o-using-iv