I'm using mappoint 2004. I have a c# form that runs fine on windows xp, but when I move it to the windows server 2003 machine it does not work. I have mappoint 2004 installed on both machines. Here is a snippet of my code
ApplicationClass app = null;
Map map = null;
public Form1()
{
InitializeComponent();
app = new ApplicationClass();
map = app.ActiveMap;
}
when the form starts it runs this code, but map is still null, I get a null pointer exception later on in my code and it is because app.ActiveMap = null.
This only happens on the windows 2003 server, On my windows XP machine it works fine. I noticed that when I run this code on my windows XP machine it starts a task called MapPoint.exe in the task manager. This is not happening on the Windows 2003 server. I beleive this is why ActiveMap is equal to null. This leads me to believe it is a setting, but I don't know where any settings would be that would start this.
I've installed Visual Studio 2005 on the windows 2003 server, and set up all the references for mappoint and everything and re-compiled it on that box, but I get the same result.
Any help would be greatly appreciated. Let me know if you need any more information.