Can Anyone Help ? ( vb.NET and MapPoint Europe )

GaryHoather
08-23-2005, 11:29 AM
I have been developing a vb front end for a client running on windows 2000 using the MapPoint COM object to access MapPoint at runtime. All has been running fine until I was asked to change the operating system to Windows XP SP2.

I installed all my development tools and project files along with the full version of MapPoint Europe 2004 on to a clean machine. The operating system was installed ( not upgraded ) with SP2 from the start.

Now I can not get the project to access MapPoint at all. I get the following error message.

"An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in axinterop.mappoint.dll

Additional information: MapPoint Europe can't run because it is not registered on your system, or it can't be found. Install MapPoint Europe and try again."

I have removed and installed MapPoint several times.

I have Norton Internet Security insatlled and defaults set, Windows XP firewall has been turned off by Norton.

Any suggestions as I really am up against a brick wall with this one.

Wilfried
08-23-2005, 11:47 AM
Hi,

I assume the code compiles without errors. Maybe first check if the compilation is ok. What happens if you run your new exe on the old machine, and vice versa ?

GaryHoather
08-23-2005, 03:10 PM
Hi Wilfried

Thanks for taking the trouble to respond to my problem. I code compiles without errors in the design environment and runs fine on the old windows 2000 computer. I have even tried compiling the code in windows 2000 and running it on the xp machine but I still get the same errpr message. The COM control just does not recognise that MapPoint 2004 Europe is imstalled on the machine. The copy is a full copy and correctly installed and licensed so I just do not know what to do next. I posted the question in the chnace that someone more experienced than myself had either encounted the problem or knew of it.

Thanks again for your interest

Wilfried
08-24-2005, 02:42 AM
Hi,

ok, assemblies are found etc.. I assume you have a visible mappoint control also in you IDE, so only at runtime... wierd...

- check if the needed files are in the search path. Maybe that path is longer on the new machine, and the new added (from mappoint) are truncated.
- eventually copy the files to application folder to test
- compare registry to check the keys generated by the installation program

I'm out of ideas, but maybe the one bring the other etc...

AlexC
08-29-2005, 08:05 AM
I have a similar problem. I've been using the mappoint control for 3 months now and the other day it just started coming back with this error.

The only difference i can see is that i am getting this error inside VS and can no longer compile my code.

'AxMapPoint.AxMapPointControl' is not defined

the refereneces are still there, but say:
<the system cannot find the reference specified>

Running XP SP2 and MP2004

any ideas?

Wilfried
08-29-2005, 12:58 PM
Hi Alex,

did you changed anithing in your environment, in VS, or anything ? Can you try to remove the control from the component list and add it again ? What about search path (I dont know where to find in VS, but could something to do with that) ?

Wilfried
08-31-2005, 05:57 AM
Hi,

Did you uninstall some program in dotnet ? There seems to be a bug with setup projects that if you dont watch carefully and you uninstall then some ocx files gets unregistered. See this link:

http://lab.msdn.microsoft.com/productfeedback/viewfeedback.aspx?feedbackid=2d1506b4-bf2b-4aa7-a29a-37f40ec103e4

 
Web mp2kmag.com
mapforums.com