Quote:
|
Originally Posted by Labtek Laura,
Thanks for the article. I've been wanting to do some MapPoint programing in .NET for a long time now. Reinforces that I am setting up the project correctly but what I can't figure out is how to enable debugging. I can create the program and run it just find but real time debugging (with breakpoints and such) don't work. I have created a MapPoint pluggin using .NET 2005 Beta and that seams to work fine. Do I have to wait for 2005 to get full capability?
Thanks, |
Ok, I have finally discovered the source of this problem and posted the solution to
my blog.
Apparently MapPoint would run all add-ins written in .NET using the latest version of the .NET runtime found on the machine. For my machines this was version 2.0. When trying to debug the application would crash because the debugger (apparently) was expecting 1.1. The solution is to force MapPoint to run the add-ins using version 1.1. To do this create a file in the MapPoint directory (the one containing MapPoint.exe) named MapPoint.exe.config. The file should contain the following text:
Code:
<configuration>
<startup>
<supportedRuntime version="v1.1.4322"/>
</startup>
</configuration>
After that I have no problems debugging .NET applications in visual studio 2003.