【问题标题】:After installing Visual Studio 2017, I'm unable to debug smart device project in Visual Studio 2008安装 Visual Studio 2017 后,我无法在 Visual Studio 2008 中调试智能设备项目
【发布时间】:2017-08-22 07:12:39
【问题描述】:

我最近安装了 Visual Studio 2017,就在它发布后不久(2017 年 3 月)。

当我在 VS 2008 中调试我的智能设备项目时,我收到一个错误消息对话框,上面只显示“操作无法完成”。 , .

以下是我观察到的列表:

  • 项目输出部署成功
  • Visual Studio 的输出窗口中不显示错误消息
  • 当我转到 Debug=>Attach to Process 并打开 Transport 下拉菜单时,它不像通常那样包含 Smart Device。
  • ProcMon 显示 devenv 在端口 5355 上保持与设备的开放连接

我尝试过的:

  • 我尝试在多种仿真器类型和设备上进行调试,这些仿真器类型和我知道过去可以使用的设备。
  • 我尝试使用默认智能设备项目创建新解决方案。
  • 我尝试删除 %localappdata%/Microsoft/CoreCon/1.0 中的所有文件

【问题讨论】:

    标签: visual-studio-2008 windows-mobile compact-framework


    【解决方案1】:

    来自Developer Community:原因是为该组件注册类型库时出错。

    要解决此问题,您可以:

    以管理员权限打开命令提示符并执行以下命令:

    reg add HKEY_CLASSES_ROOT\TypeLib{6A1A7D39-8449-4287-8EF0-CE256582C940}\8.0\0\win32 /t REG_SZ /d "C:\Program Files (x86)\Common Files\Microsoft Shared\VS7Debug\coloader80.tlb"
    

    您也可以执行:

    regsvr32 "C:\Program Files (x86)\Common Files\Microsoft Shared\VS7Debug\coloader80.dll"
    

    正确的注册将包含在 Visual Studio 的未来版本中。

    【讨论】:

      【解决方案2】:

      在尝试使用 Visual Studio 调试其自身后,我收到以下错误消息

      "A Visual Studio DLL, coloader8O.dll, is not correctly installed. Please
      repairyour Visual Studio installation via ‘Add or Remove Programs’ in
      Control Panel.
      If the problem persists, you can manually register coloader8O.dll from
      the command prompt with ‘regsvr32
      “%CommonProgramFiles%\Microsoft
      Shared\VS7Debug\coloader8O.dll”.
      

      按照我在developercommunity.visualstudio.com 上找到的一些说明,我能够解决这个问题,其中涉及将HKEY_CLASSES_ROOT\TypeLib{6A1A7D39-8449-4287-8EF0-CE256582C940}\8.0\0\win32 的记录值更改为C:\Program Files (x86)\Common Files\Microsoft Shared\VS7Debug\\coloader80.tlb

      【讨论】:

        猜你喜欢
        • 2019-09-04
        • 1970-01-01
        • 2017-08-22
        • 2011-05-14
        • 1970-01-01
        • 2017-04-02
        • 1970-01-01
        • 1970-01-01
        • 2017-08-07
        相关资源
        最近更新 更多