Welcome to MapForums!

Register, sign in, or use Facebook Connect above to join in and participate in the forum.

When you are signed in, this message, the ads in this row, and the red-underlined link ads all go away.

Subscribe to receive our newsletter.
Subscribe Unsubscribe
Results 1 to 6 of 6

RPC Server is unavailable

This is a discussion on RPC Server is unavailable within the MapPoint Desktop 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, ...

  1. #1
    BobFromBoston is offline Senior Member Green Belt
    Join Date
    Jul 2005
    Posts
    128

    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

  2. #2
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433
    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.

  3. #3
    BobFromBoston is offline Senior Member Green Belt
    Join Date
    Jul 2005
    Posts
    128
    Wilfried,

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

    Thanks for the help,
    Bob

  4. #4
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433
    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.

  5. #5
    kvansickle is offline 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.

  6. #6
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Server Busy
    By Sylvain in forum MapPoint Desktop Discussion
    Replies: 22
    Last Post: 05-07-2014, 07:28 PM
  2. New DataSource Unavailable?
    By bryker in forum Bing Maps and MapPoint Web Service
    Replies: 2
    Last Post: 02-19-2006, 05:31 PM
  3. The RPC server is unavailable
    By BobFromBoston in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 10-15-2005, 09:35 PM
  4. Server is Busy
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 4
    Last Post: 01-18-2005, 04:52 AM
  5. how to upload map to my server
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 5
    Last Post: 09-21-2002, 12:49 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


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 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96