Próbuję skonfigurować nową aplikację Windows Forms (C++/CLI) w Visual Studio 2010 na Windows 7. Za każdym razem, gdy próbuję otworzyć Designer, nie z tej nieprzydatny błędu:Wyjątek od HRESULT: 0x8CE00001 podczas otwierania Visual Studio 2010 Designer
Exception from HRESULT: 0x8CE00001
Instances of this error (1)
1. Hide Call Stack
at Microsoft.VisualStudio.Designer.Interfaces.IVSMDCodeDomProvider.get_CodeDomProvider()
at Microsoft.VisualStudio.Shell.Design.Serialization.CodeDom.CodeDomDocDataAdapter.get_Provider()
at Microsoft.VisualStudio.Shell.Design.Serialization.CodeDom.CodeDomDocDataAdapter.get_CompileUnit()
at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager serializationManager)
at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.DeferredLoadHandler.Microsoft.VisualStudio.TextManager.Interop.IVsTextBufferDataEvents.OnLoadCompleted(Int32 fReload)
Jeśli debugować Visual Studio i przerwać na wyjątki CLR, to rzeczywiście rzuca pierwszy ten wyjątek:
A first chance exception of type 'System.ArgumentException' occurred in Microsoft.VisualStudio.Design.dll
Additional information: The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))
z tego połączenia stosu:
> Microsoft.VisualStudio.Design.dll!Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.VerifyNestedDocDataCompatible() + 0x15d bytes
Microsoft.VisualStudio.Design.dll!Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.Microsoft.VisualStudio.Designer.Interfaces.IVSMDDesignerLoader.Initialize(object pSp, object pHier, int itemid, object punkDocData) + 0xb5 bytes
[Native to Managed Transition]
vcpkg.dll!CVCFormEditorFactory::CreateEditorInstance() + 0x2e49f bytes
msenv.dll!CVsUIShellOpenDocument::OpenSpecificEditor() + 0x784 bytes
VCProject.dll!CVCFileNode::OpenSpecificEditor() + 0xc6 bytes
VCProject.dll!CVCFileNode::OpenSpecificEditor() + 0x3a bytes
VCProject.dll!CVCFileNode::DoOpenFile() + 0x1fe bytes
VCProject.dll!CVCFileNode::DoDefaultAction() + 0x5b bytes
VCProject.dll!CVCArchy::ExecCommand() + 0x8c bytes
msenv.dll!CVsUIHierarchyBaseWin::ExecHierParentChain() + 0x85 bytes
msenv.dll!CVsUIHierarchyBaseWin::WinExecCommand() + 0x7d bytes
msenv.dll!CVsUIHierarchyBaseWin::ProcessLButtonDblClkMsg() + 0xd8 bytes
msenv.dll!FnwpTVFixer() + 0x76b49 bytes
[email protected]() + 0x23 bytes
[email protected]() + 0xb7 bytes
[email protected]() + 0xed bytes
[email protected]() + 0xf bytes
msenv.dll!ProcessMessage() + 0x4d bytes
msenv.dll!CMsoCMHandler::EnvironmentMsgLoop() + 0x87 bytes
msenv.dll!CMsoCMHandler::FPushMessageLoop() + 0x79 bytes
msenv.dll!SCM::FPushMessageLoop() + 0x8c bytes
msenv.dll!SCM_MsoCompMgr::FPushMessageLoop() + 0x2a bytes
msenv.dll!CMsoComponent::PushMsgLoop() + 0x28 bytes
msenv.dll!VStudioMainLogged() + 0x22a bytes
msenv.dll!_VStudioMain() + 0x78 bytes
devenv.exe!util_CallVsMain() + 0xdb bytes
devenv.exe!CDevEnvAppId::Run() + 0x693 bytes
[email protected]() + 0x9c bytes
devenv.exe!operator new[]() + 0xb31c bytes
[email protected]@12() + 0x12 bytes
[email protected]() + 0x27 bytes
[email protected]() + 0x1b bytes
Jest to z czystym, nowym projektem (Plik → Nowy → Projekt ... → Visual C++ → CLR → Aplikacja Windows Forms). Po utworzeniu nowego projektu otwarcie automatycznego generowania Form1.h
powoduje błąd zamiast Projektanta. Jednak jeśli utworzę C# Windows Forms Application zamiast C++/CLI, to działa dobrze.
Jakieś pomysły, w jaki sposób mogę rozwiązać ten problem i otworzyć Projektanta? Próbowałem wszystkie następujące bezskutecznie:
- Ponowne instalowanie VS 2010 SP1
- Uruchamianie Windows Update, który zainstalowano dwa VS związanych aktualizacji ("Update dla programu Microsoft Visual Studio 2010 z dodatkiem Service Pack 1 (KB2736182)" i "Aktualizacja dla programu Microsoft Visual Studio 2010 Tools for Office Runtime (KB2764593)")
- Instalacja KB2635973, który naprawia podobnym wyglądzie WYDANIE
- restartu po instalacji powyższą
- wyłączanie wszystkich ustawień DirectX debugowanie/walidacji w Panel sterowania DirectX
- Odinstalowanie nic z "Microsoft SQL Server Compact" w nazwie przez "Programu i funkcje" centrala
Znalazłem kilka podobnych tematów w Internecie (one, two, three) , ale wszystkie były niejednoznaczne lub nie działały dla mnie. Jeszcze nie próbowałem w pełni reinstalować Visual Studio, ale być może będę musiał spróbować tego w następnej kolejności.
Mogę potwierdzić, że miałem ten sam problem i było to związane z rozszerzeniami VS. Odinstaluj wszystkie nieistotne elementy z menedżera rozszerzeń, zrestartowałem system VS i problem zniknął. – Henrik