problems to load a card with visual c# 2005

black_fox_71
04-22-2008, 02:22 AM
hello

i develop an aplication with visual c# 2005 using an API of mappoint 2006. When i load a card (of europe for my case :p), i have the following problems :

System.runtime.interropservice.Comeexception s'est produite dans axinterrop.mappoint 2005
Information supplémentaires : le fichier que vous avez choisi n'est un pas un fichier mappoint 2005

in english : the file is not a mappoint 2005 map ????? strange:huh2:

So i use the following code to load the map :

string objtemplate = "D:/bidule.ptt"; // just example
mappoint.map objMap = null;
axMappointcontrol1.NewMap(objtemplate);
objMap = axMappointControl1.ActiveMap;
objMap.MapStyle= MapPoint.GeoMapStyle.geoMapStyleData;


i used the good references of mappoint, i use the good map too (europe map, it's on the good path). Moreover i tested my code on an other computer, and it works :deal:.

I want to know, like i use an old version of excel if the probleme can becom of that ??

If someone can help me :p.

ps : sorry for my english, im french and english course are not the better in the world in france.:smarty:

Wilfried
04-22-2008, 02:44 AM
Hi,

Are you sure you don't mix the text in the exception? You use VS2005, but there is no Mappoint 2005. If not, what if you open the very same file in the executable mappoint ?

black_fox_71
04-22-2008, 03:03 AM
hi,

yes, i use VS2005, and i know what there isn't a mappoint 2005 version, that's why it's strange ...:sweatdrop2:


Moreover, i use the same map of mapPoint 2006, and it's a original CD. I installed a patch for SP1 VS2005 too.


i dont know where can becom the problem.


if you want a sreen of my exception? i can make one.

Wilfried
04-24-2008, 07:46 AM
Hi,

Even more strange :(
It works on another machine you say, so I should think there is something corrupt in the setup from mappoint on that particular machine. maybe cleanup and reinstall mappoint will help?

black_fox_71
04-25-2008, 07:50 AM
Hi,

Yes, i have already clean up my mapPoint directory, and desinstall it. I have desinstall VS2005 with all of these components like frame work, and install all.

i have always the same problem, the file is not a mapPoint 2005 map.

:s :bomb: :gun_bandana::hammer:

so if you have an other idea ?

Wilfried
04-28-2008, 04:08 AM
Hi,

I have no addtional idea at the moment. If you want I can try your application on my machine. If you like me to do so send it to my regular email address.

black_fox_71
04-30-2008, 02:10 AM
Hello,

I give up, i tested on an other pc, and my code works. perhaps the probleme is due to a wrong configuration ... i dont know :no:.

So thank you very much for your answers Wilfried. I will post soon an other question :D. As the habit, i dont know if someone could help me.

Regards,

 
Web mp2kmag.com
mapforums.com