XAML Design View Unhandled Exception

Dave Harmon Jr 96 Reputation points
2021-03-29T17:22:52+00:00

I came back to a project over the weekend that uses this open source library: https://github.com/judero01col/GMap.NET/

For some reason the GMapControl now causes the designviewer to crash with an unhandled exception:
The .NET Core 3.0 runtime for 'x64' platform configuration is missing or damaged. Please download and install .NET Core 3.0 SDK for the 'x64' platform. (Exit code: 80008083)

I have done that and still get the error. Also it kind of makes no sense to me because I have not knowingly changed anything since I worked on it last friday. My coworker has cloned this and it works fine on his computer. I had him send me a pic of his VS installer page so I could make sure it was installed exactly the same. Another interesting fact is that he doesn't even have .NET Core 3.0 installed at all he only has 5.0 and 4.8. I tried repairing the VS install, I tried reinstalling it from scratch. I tried deleting my entire directory for github and cloning it again. I tried using a second instance of visual studio to debug the wpfsurface process when it gets the unhandled exception, this method did not work it just stops debugging with no useful information when the unhandled exception occurs.

The program compiles and runs perfectly fine. I just cannot see anything on the XAML design view because of this error. It also affects every single one of my XAML view files in the entire solution, not just that project.

If I open another solution with only the GMap projects in it everything works fine. It is only when it is stuffed inside of my programs solution that it stops. If I create a brand new project the XAML viewer works.

If I comment out the line for the map control and rebuild and reload the designview starts working again across the entire program.

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,201 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,117 questions
XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
762 questions
0 comments No comments
{count} votes

Accepted answer
  1. Dave Harmon Jr 96 Reputation points
    2021-03-29T20:46:10.703+00:00

    Figured out the issue. Apparently the root cause of this was this tag missing from my projects xaml file.

    <RuntimeIdentifier>win-x64</RuntimeIdentifier>

    Adding this in fixed it. Not sure why but basically what I did was went to a demo app that worked and added in the generic xaml lines I was missing and by process of elimination figured out it was this one. It was working a few days ago, but I also share this repo with another person so maybe somehow it got confused it was supposed to have that setting and explicitly listing it fixed it.

    No idea why it popped up with a Net Core 3.0 error seeing as it is not used at all in the project. It was really misleading and led me on a wild goose chase.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Karen Payne MVP 35,031 Reputation points
    2021-03-29T17:29:36.563+00:00

    Your best option is too post this issue on their issue page as this is third party code.

    0 comments No comments