Search code examples
visual-studio-2008windows-mobilecompact-framework

After installing Visual Studio 2017, I'm unable to debug smart device project in Visual Studio 2008


I recently installed Visual Studio 2017, just shortly after it was released (March 2017).

When I go to debug my smart device project in VS 2008 I get a error message dialog that just says "The operation could not be completed". , .

Here is a list of what I've observed:

  • The project output successfully deploys
  • no error message is displayed in the output window in Visual Studio
  • when I go to Debug=>Attach to Process and open the Transport drop down, it doesn't contain Smart Device like it usually does.
  • ProcMon shows that devenv is maintaining a open connection to the device on port 5355

What I've tried:

  • I tried debugging on multiple emulator types and devices that I know have worked in the past.
  • I tried creating an new solution with the default smart device project.
  • I tried deleting all the files in %localappdata%/Microsoft/CoreCon/1.0

Solution

  • From Developer Community: The cause is an error in the registration of the type library for this component.

    To fix this issue, you can either:

    Open a command prompt with administrator privileges and execute the following command:

    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"
    

    Alternatively you can execute:

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

    The correct registration will be included in future versions of Visual Studio.