MapPoint Forums

MapForums

Community of MapPoint and Virtual Earth Users and Developers




Cannot create ActiveX component.

This is a discussion on Cannot create ActiveX component. within the MapPoint 2006/2009 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 ...


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion

Today's Posts Twitter Feed Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read



Click here to register

Reply

 

LinkBack (1) Thread Tools Display Modes
  1 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 02-14-2005
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 (PointA <> "") And (PointB <> "") Then

            strDisplay = Request.Item("display")

            If strDisplay = "" Then strDisplay = "none"

[b]            objApp = CreateObject("MapPoint.Application")[/b]            objMap = objApp.NewMap
Thanks for any help

Mike
__________________
Miman
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 02-14-2005
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
activex, component, create


LinkBacks (?)
LinkBack to this Thread: http://www.mapforums.com/cannot-create-activex-component-3820.html

Posted By For Type Date
Active x cannot create component - ActiveX component cannot create object This thread Refback 07-30-2007 12:41 AM

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
mappoint component ....!!!! zaaboulla MapPoint 2006/2009 Discussion 1 07-04-2005 08:28 AM
MapPoint ActiveX Component lazarus MapPoint 2006/2009 Discussion 4 03-26-2004 02:51 PM
Writing a new COM component for MapPoint2002 tanguy_laverdure MapPoint 2006/2009 Discussion 0 12-04-2003 02:03 AM
i have added the activeX component(s) to delphi. .... Anonymous MapPoint 2006/2009 Discussion 1 02-01-2002 04:35 AM
I have a main form that contains a Menu-component .... Anonymous MapPoint 2006/2009 Discussion 1 10-01-2001 09:13 AM


All times are GMT -5. The time now is 12:55 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0 RC2
MP2K Magazine
Visitor Map

Algarve Holiday
Portuguese all year round sunshine is some of what awaits you if you choose the Algarve holiday option through UlookUbook!



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