gpt4 book ai didi

visual-studio-2010 - HRESULT : 0x8CE00001 when opening Visual Studio 2010 Designer 异常

转载 作者:行者123 更新时间:2023-12-02 22:02:29 34 4
gpt4 key购买 nike

我正在尝试在 Windows 7 上的 Visual Studio 2010 中设置新的 Windows 窗体应用程序 (C++/CLI)。每次我尝试打开设计器时,都会失败并出现以下无用的错误:

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)

如果我调试 Visual Studio 并在 CLR 异常上中断,它实际上首先抛出此异常:

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))

使用此调用堆栈:

>   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
user32.dll!_InternalCallWinProc@20() + 0x23 bytes
user32.dll!_UserCallWinProcCheckWow@32() + 0xb7 bytes
user32.dll!_DispatchMessageWorker@8() + 0xed bytes
user32.dll!_DispatchMessageW@4() + 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
devenv.exe!_WinMain@16() + 0x9c bytes
devenv.exe!operator new[]() + 0xb31c bytes
kernel32.dll!@BaseThreadInitThunk@12() + 0x12 bytes
ntdll.dll!___RtlUserThreadStart@8() + 0x27 bytes
ntdll.dll!__RtlUserThreadStart@8() + 0x1b bytes

这是一个干净的新项目(文件 → 新建 → 项目... → Visual C++ → CLR → Windows 窗体应用程序)。创建新项目后,打开自动生成的 Form1.h 会导致错误,而不是设计器。但是,如果我创建 C# Windows 窗体应用程序而不是 C++/CLI,则它可以正常工作。

关于如何解决这个问题并打开设计器有什么想法吗?我已尝试以下所有方法均无效:

  • 正在重新安装 VS 2010 SP1
  • 运行 Windows Update,该更新安装了两个 VS 相关更新(“Microsoft Visual Studio 2010 Service Pack 1 更新 (KB2736182)”和“Microsoft Visual Studio 2010 Tools for Office Runtime 更新 (KB2764593)”)
  • 正在安装 KB2635973 ,它修复了类似的问题
  • 安装上述内容后重新启动
  • 关闭 DirectX 控制面板中的所有 DirectX 调试/验证设置
  • 通过“程序和功能”控制面板卸载名称中含有“Microsoft SQL Server Compact”的任何内容

我在网上找到了一些类似的线程( onetwothree ),但它们都没有结论或对我不起作用。我尚未尝试完全重新安装 Visual Studio,但接下来我可能需要尝试一下。

最佳答案

我已通过设置成功解决了问题:

tools -> options -> textEditor -> C++ -> Advanced -> "Disable DataBase"

返回到false(当DisableDataBase == true出现HRESULT错误时),而不是重新启动VisualStudio。

关于visual-studio-2010 - HRESULT : 0x8CE00001 when opening Visual Studio 2010 Designer 异常,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13502499/

34 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com