question

DaveHarmonJr-7726 avatar image
0 Votes"
DaveHarmonJr-7726 asked DaveHarmonJr-7726 answered

XAML Design View Unhandled Exception

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.

dotnet-csharpdotnet-runtimedotnet-wpf-xaml
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

DaveHarmonJr-7726 avatar image
0 Votes"
DaveHarmonJr-7726 answered

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.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

karenpayneoregon avatar image
0 Votes"
karenpayneoregon answered

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


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.