Community of VE/MapPoint Users and Developers
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 ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| problem with mappoint on windows server 2003 using c# 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. |
| |||
| 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 !
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
| |||
| 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. |
| |||
| Re: problem with mappoint on windows server 2003 using c#
Hi, I'm not familiar with 2003 server. security permissions somewhere ?
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
| |||
| 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. |
![]() |
| Tags |
| 2003, mappoint, problem, server, windows |
| ||||
| 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 | |
| |
| ||||
| 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 |
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.