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

Adding MapPoint COM Object to .NET Web Service

This is a discussion on Adding MapPoint COM Object to .NET Web Service within the MapPoint Desktop Discussion forums, part of the Map Forums category; Hi Everyone - I am having trouble loading the MapPoint COM application object into my .NET web service. I use ...

  1. #1
    ChrisC is offline Junior Member White Belt
    Join Date
    Jan 2003
    Posts
    4

    Adding MapPoint COM Object to .NET Web Service

    Hi Everyone -

    I am having trouble loading the MapPoint COM application object into my .NET web service. I use the following code for my windows application (successfully,) but I get an error when I try and use it in a web service:

    MapPoint.Application oApp = new MapPoint.ApplicationClass();

    This creates an HTTP 500 error when I invoke the method from the web service page:

    The page cannot be displayed
    There is a problem with the page you are trying to reach and it cannot be displayed.

    I have references the COM application object using the add reference to the solution as well.

    Does anyone have any experience or advice with this?

    Thanks!!!
    Chris

  2. #2
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137

    MapPoint with Java

    Hello, I saw your message in this forum, and I have a question for your very similar: I have MapPoint installed on my computer, and I want to put it on a web Service to allow a Java application access to MapPoint. The web service should give a .gif image to the application. But im not sure if I could hang MapPoint in my own WebService (which would be only accesible from the computer it is installed in).
    Aditionally, do you know any method to access MapPoint with a Java application?
    Thanks in advance

  3. #3
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137
    I don't think you will find what you are doing very easy for 2 reasons. 1. There is no method call that I know of that will export a map object as an image, which brings me to point 2: The utilities library only returns a "catastrophic failure" whenever I tried it from a web server, which limits you to copy and paste. Web servers run as MTA (multiple threaded apartments) which means that you cant access the clipboard object.

    I finally have a preliminary remoting server outputting maps through ASP.NET, but man, I had to get into the win32 api to get at the copied objects...not fun.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. VBA help needed using MapPoint.Application object
    By SheepWorrier in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 11-03-2004, 07:30 AM
  2. Drawing on mappoint object
    By vidyakulkarni in forum MapPoint Desktop Discussion
    Replies: 4
    Last Post: 08-05-2004, 10:28 AM
  3. route object to drawing object
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 05-09-2003, 11:29 PM
  4. Using Mappoint COM object through SQL Server
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 9
    Last Post: 11-13-2002, 07:35 AM
  5. I have written a program using the mappoint object....
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 04-26-2001, 11:12 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