PDA

View Full Version : Adding MapPoint COM Object to .NET Web Service



ChrisC
01-31-2003, 11:10 AM
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

Anonymous
09-30-2003, 07:01 AM
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

Anonymous
09-30-2003, 07:13 PM
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.