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

Cannot create ActiveX component.

This is a discussion on Cannot create ActiveX component. within the MapPoint Desktop Discussion forums, part of the Map Forums category; Hi, I'm writing an ASP.NET application and am having problems with the ActiveX component. My machine is windows XP and ...

  1. #1
    miman is offline Junior Member White Belt
    Join Date
    Feb 2005
    Posts
    1

    Cannot create ActiveX component.

    Hi,

    I'm writing an ASP.NET application and am having problems with the ActiveX component. My machine is windows XP and I can run MapPoint as a standalone application no problem. But when I try to generate anything with ASP.NET I get 'Cannot create ActiveX component.' when I try to create an object

    the asp code is:


    Code:
            Dim objApp As MapPoint.Application
            Dim objMap As MapPoint.Map
            Dim objLoc As MapPoint.Location
            Dim objPin() As MapPoint.Pushpin
    
            Dim objActive 'As Active Map
    
            Dim strDisplay
            Dim INI_File_Location
            Dim Temporary_Variable1
            Dim Temporary_Variable2
    
            Const geoFormatHTMLMap = 2
            Const geoDisplayName = 1
            Const geoDisplayBalloon = 2
    
            Dim PointA As String
            Dim PointB As String
    
    
            'On Error Resume Next
    
            PointA = txtPointA.Text '"Accrington"
            PointB = txtPointB.Text '"Oban"
    
            If &#40;PointA <> ""&#41; And &#40;PointB <> ""&#41; Then
    
                strDisplay = Request.Item&#40;"display"&#41;
    
                If strDisplay = "" Then strDisplay = "none"
    
    &#91;b&#93;            objApp = CreateObject&#40;"MapPoint.Application"&#41;&#91;/b&#93;            objMap = objApp.NewMap
    Thanks for any help

    Mike
    Miman

  2. #2
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137
    I had to change the security settings on the DCOM object to allow the local ASPNET account permission to activate the MapPoint control. Open up Administrator Tools > Component Services and look for the 2 MapPoint objects under the DCOM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. mappoint component ....!!!!
    By zaaboulla in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 07-04-2005, 09:28 AM
  2. MapPoint ActiveX Component
    By lazarus in forum MapPoint Desktop Discussion
    Replies: 4
    Last Post: 03-26-2004, 03:51 PM
  3. Writing a new COM component for MapPoint2002
    By tanguy_laverdure in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 12-04-2003, 03:03 AM
  4. i have added the activeX component(s) to delphi. ....
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 02-01-2002, 05:35 AM
  5. I have a main form that contains a Menu-component ....
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 10-01-2001, 10:13 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