MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




RPC Server is unavailable

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, ...


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 Thread Tools Display Modes
  #1 (permalink)  
Old 12-28-2005
Senior Member
Green Belt
 
Join Date: Jul 2005
Posts: 105
RPC Server is unavailable

Greetings,

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
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 12-28-2005
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,105
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.
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 12-28-2005
Senior Member
Green Belt
 
Join Date: Jul 2005
Posts: 105
Wilfried,

Could this threading contention problem also be the cause of my
"The RPC server is unavailable" exception?

Thanks for the help,
Bob
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 12-29-2005
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,105
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.
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 04-19-2006
Junior Member
White Belt
 
Join Date: Oct 2005
Posts: 1
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.
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 04-20-2006
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,105
Hi,

thans for this feedback. It will benefit other users !
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
rpc, server, unavailable


Currently Active Users Viewing This Thread: 2 (0 members and 2 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
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


All times are GMT -5. The time now is 10:02 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 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!


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