Community of VE/MapPoint Users and Developers
This is a discussion on RPC Server is unavailable within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Greetings, MapPoint throws an exception: The RPC Server is unavailable at MapPoint.Pushpin.Delete() The code normally works, but on rare occassion, ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| RPC Server is unavailable MapPoint throws an exception: The RPC Server is unavailable at MapPoint.Pushpin.Delete() The code normally works, but on rare occassion, throws this exception. So I'm trying to understand the condition which causes it, and how to fix it. When the processor is under load, Windows pops up the "Server Busy" message box. Could that be the problem? Thanks for the help. I had asked a related question months ago, but never got it fixed. Thanks, Bob |
| |||
|
Hi Bob, If your application is busy with lengty things you get the server busy message. Only solution is to optimize your code for speed, or execute the lengthy things in a background thread.
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
| |||
|
Hi Bob, I hope this will help: http://support.microsoft.com/default...;en-us;Q224370 But the hell what is RPC ? If they should tell then it is probably easy. but anyway check the service.
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
| |||
|
I have a C# application that references the MapPoint object model. I am using the Application object and not the MapPointControl object. This program was periodically generating an RPC Server exception. The program opens a base map, reads several thousand records from a database table, and places pushpins on the base map corresponding to lat/lon values read from the database table. It then zooms to different locations, queries the pushpin records within the current view to get a count, and creates web pages for each of the locations. I set up a system timer to repeat the process at a user selected interval. Initially I opened the base map when the program loaded and kept it open until the program exited. I would create my pushpin dataset every time the timer event fired and delete it when I was finished processing each iteration. Sometimes the program would generate the RPC Server exception on the first iteration (timer event). Other times it would run fine for a dozen or so iterations and then generate the exception. I considered the possibility that one iteration may not be finished processing when it was time for the next iteration to start. However, I created a Monitor to avoid this. I also set the timer interval to a point where I was certain that this was not happening and I still periodically got the exception. I changed my code so that it initializes the MapPoint.Application object and opens the base map every time the timer event fires. When I am finished processing the data for each iteration, I use the MapPoint.Application.Quit() function and then set the Application object and Map object to null. I know that this is probably not the most efficient technique but I have not seen the RPC server error since I made this change. I realize that this reply is probably too late to help the original poster but I hope it can help someone in the future. |
| |||
|
Hi, thans for this feedback. It will benefit other users !
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
![]() |
| Tags |
| rpc, server, unavailable |
Currently Active Users Viewing This Thread: 2 (0 members and 2 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| New DataSource Unavailable? | bryker | MapPoint Web Service and Virtual Earth | 2 | 02-19-2006 04:31 PM |
| The RPC server is unavailable | BobFromBoston | MapPoint 2006/2009 Discussion | 0 | 10-15-2005 08:35 PM |
| Server is Busy | Anonymous | MapPoint 2006/2009 Discussion | 4 | 01-18-2005 03:52 AM |
| Server Busy | Sylvain | MapPoint 2006/2009 Discussion | 21 | 09-18-2004 04:25 PM |
| how to upload map to my server | Anonymous | MapPoint 2006/2009 Discussion | 5 | 09-21-2002 11:49 AM |
Catered Ski Holidays
Book catered ski holidays online at Holiday Hypermarket. Our powerful ski holidays search will find you great deals for low prices.
Personal Travel Advisor
Let a personal Travel Advisor help with your travel plans. Travel Counsellors were voted UK's Best Travel Agent at the Guardian Unlimited travel awards
Holidays Cuba
When you book holidays in Cuba you will find a fascinating country with a heady combination of Spanish, African and Caribbean influences. Check our great deals.
Holidays to Cuba
For the best offers on holidays to Cuba, visit The Holiday Place today. Find a deal to suit you and your budget online!
Cheap Holidays
Hunting for cheap holidays? Well save time by booking online with ulookubook.com and you can even check out our top tips to help you hunt down a bargain holiday.
Family package holidays
Save a lot of time and opt for one of the great family package holidays at Travel.co.uk
Cheap Holidays to Lanzarote
Visit the Canary Islands, even if you're cash strapped! View cheap holidays to Lanzarote at On The Beach!