MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




problem with mappoint on windows server 2003 using c#

This is a discussion on problem with mappoint on windows server 2003 using c# within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I'm using mappoint 2004. I have a c# form that runs fine on windows xp, but when I move it ...


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read



Click here to register

Reply

 

LinkBack (1) Thread Tools Display Modes
  1 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 10-19-2007
Junior Member
White Belt
 
Join Date: Oct 2007
Posts: 3
problem with mappoint on windows server 2003 using c#

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 10-23-2007
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,105
Re: problem with mappoint on windows server 2003 using c#

Hi,

I assume that if you start manually mappoint.exe application that it runs normal ? Also did you clicked on the agree from the licence agreement ?

You could try to move the code to the form load event instead of putting it in the constructor of the form.

if this all does not help, it could be that it has something to do with rights on the 2003 server ? do you run as administrator ? If not try so. I recall also that you again have to run mappoint and again agree on the licence agreement or it will not work !
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 10-23-2007
Junior Member
White Belt
 
Join Date: Oct 2007
Posts: 3
Re: problem with mappoint on windows server 2003 using c#

Thanks for the reply. I am able to start mappoint if I click on the exe. I've accepted the licence and everything. I am also running as Administrator. I've tried moving the code into other places, even in the specific function without luck.

I am running as Administrator. I believe it is something weird with this machine. I've installed it on another 2003 server and it is working on that server. The only problem is it is not working on our IIS server .

I've checked file permissions, Are there any other permissions you can think of? Thanks.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4 (permalink)  
Old 10-23-2007
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,105
Re: problem with mappoint on windows server 2003 using c#

Hi,

I'm not familiar with 2003 server. security permissions somewhere ?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5 (permalink)  
Old 10-23-2007
Junior Member
White Belt
 
Join Date: Oct 2007
Posts: 3
Re: problem with mappoint on windows server 2003 using c#

okay I found my solution. Here it is for anyone else who runs into this problem. I uninstalled Map point. I then went into the registery and did a search for mappoint. I deleted MOST of the registry settings. There were some that corresponded to IIS that I didn't want to delete. After deleting the registry keys I re-installed it and it worked. It must have been something weird in my install. Thanks everyone for your help.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6 (permalink)  
Old 10-23-2007
Eric Frost's Avatar
Senior Member
Black Belt
 
Join Date: Jul 1992
Posts: 2,382
Blog Entries: 1
Re: problem with mappoint on windows server 2003 using c#

Cool. Thanks for following up. Can you give more details on what you did not delete?

Eric
__________________
~ Now taking orders for MapPoint 2009 ~
~
~ Upgrade to MapForums Plus membership ~
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
2003, mappoint, problem, server, windows


LinkBacks (?)
LinkBack to this Thread: http://www.mapforums.com/problem-mappoint-windows-server-2003-using-c-6591.html

Posted By For Type Date
The Magazine for MapPoint - MP2K Magazine This thread Refback 10-19-2007 12:30 PM

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Win2000 Server+Infragistics Toolbar+Mappoint = problem? EdB MapPoint 2006/2009 Discussion 2 02-22-2005 11:54 AM
MapPoint failed on Windows Server 2003 Anonymous MapPoint 2006/2009 Discussion 0 02-14-2005 07:39 PM
Mappoint 2004 & Office 2003 compatibility problem javigdiaz MapPoint 2006/2009 Discussion 2 12-16-2004 09:24 AM
Cut and Paste Problem with Word 2003 and MapPoint 2004 brubli MapPoint 2006/2009 Discussion 0 10-21-2004 04:26 PM
Problem with MapPoint 2004 Installation on Windows 2003 serv TPham Wish List 0 04-15-2004 05:46 PM


All times are GMT -5. The time now is 05:42 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
MP2K Magazine
Visitor Map

Catered Ski Chalet
Hoping to book a catered ski chalet? Make sure you visit Holiday Hypermarket and search for accommodation to suit your holiday requirements.

Flights to Turkey
Find cheap flights to Turkey on Travel Counsellors. A personal Travel Counsellor can help you plan flights and find accommodation in Turkey.

Holiday in Turkey
A Holiday in Turkey is great value when you book with dealchecker.co.uk. There is an abundance of things to see and do. Check out the well-preserved Greco-Roman ruins.

Holidays in Egypt
A holiday in Egypt will stimulate your mind, captivate your heart and spark your senses. Visit this exceptional country, book today!

Cheap Greece Holidays
For cheap Greece holidays make sure you know when to book and who to book with. Visit ulookubook.com to get help with doing both of those things. Why not time your visit with a Greek festival?

Cheap package holidays
Use Travel.co.uk to find the best cheap package holidays available. Have fun and save money at the same time

Holidays in Goa
Want to know more about Indian culture? Visit On The Beach for information on holidays in Goa.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52