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 3 of 3

MapPoint Control in ASP

This is a discussion on MapPoint Control in ASP within the MapPoint Desktop Discussion forums, part of the Map Forums category; I'm trying to convert an address to a latitude/longitude coordinate within my ASP program. I have MapPoint 2002 (North America) ...

  1. #1
    technohippie is offline Junior Member White Belt
    Join Date
    Nov 2002
    Posts
    2

    MapPoint Control in ASP

    I'm trying to convert an address to a latitude/longitude coordinate within my ASP program.

    I have MapPoint 2002 (North America) installed on my server. I've booted it up on the desktop, messed around with it, and it works fine on the desktop.

    Here's what I did:

    1.
    I created a little COM object in VB using some of the functionality from the MapPoint Control (OCX) and some code I found on this site. Basically, my COM object only has one method to convert the address to lat/lon.

    2.
    I created an ASP page that calls my COM object. The initiation works. It gets past the line:
    Set objMP = Server.CreateObject("mydll.myclass")
    When I try to run the method that converts the address, it errors out.

    I created 2 additional properties in my COM object to show me the error info. I get this:

    Err.Description = "MapPoint North America can't run because it is not registered on your system, or it can't be found. Install MapPoint North America and try again."

    Err.Number = 16398

    Although I'm not certain because I can't step through each line of the COM when it's executing, I believe the error is when I set the NewMap property = 1 (north america)

    The North America CD2 is installed. I played around with it on the desktop, everything seems to be there.

    Any suggestions? Maybe a different program? I know there's licensing issues with MapPoint 2002, please don't remind me. I'm just trying to get some coordinates.

  2. #2
    John Meyer's Avatar
    John Meyer is offline Senior Member Blue Belt
    Join Date
    Jul 2002
    Posts
    478
    First thing I would try is running your com object from vbscript at the command line (NOT in ASP). See if it works as it should.

    Is the IUSR_ComputerName the user that would be calling the com object in the ASP page? Whatever user it might be, sign in as them and run mappoint. The hang up is probably "that" user has not Agreeed/Disagreed with the EULA?

  3. #3
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137
    I've seen this before, try going to start->run and typing:

    "C:\Program Files\Microsoft MapPoint\MapPoint.exe" /regserver

    If you installed Mappoint to a nondefault location, change the location accordingly. But make sure the path is inside the quotes and the /regserver is outside.

    -Jim Keller
    http://jim.centerfuse.net/projects/
    http://jimkeller.blogspot.com/

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Re: Keyboard control in mappoint activex control
    By djcapslock in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 03-10-2005, 11:16 AM
  2. Using MapPoint Control for Web App
    By Attila in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 01-11-2005, 10:36 AM
  3. MapPoint Graphics Control
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 09-30-2004, 08:03 AM
  4. i need the mappoint control 9 please
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 3
    Last Post: 04-22-2004, 10:41 AM
  5. I am using MapPoint Control in another Ac....
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 11-23-2001, 09:29 AM

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