Community of MapPoint and Virtual Earth Users and Developers
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 ...
| |||||||
| Today's Posts | Twitter Feed | Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| Cannot create ActiveX component. 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
Mike
__________________ Miman |
| |||
|
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. |
![]() |
| Tags |
| activex, component, create |
| ||||
| 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 | |
| |
| ||||
| 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 |
Algarve Holiday
Portuguese all year round sunshine is some of what awaits you if you choose the Algarve holiday option through UlookUbook!