MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Calling Mappoint 2004 from ASP/COM

This is a discussion on Calling Mappoint 2004 from ASP/COM within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hi all, we are trying to call the MapPoint ActiveX control from a COM+ application developed in VB. Whenever we ...


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

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



Click here to register

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-26-2003
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
Calling Mappoint 2004 from ASP/COM

Hi all,

we are trying to call the MapPoint ActiveX control from a COM+ application developed in VB. Whenever we try to call the MapPoint object we get the following error in the event log along with the failure:

"Access denied attempting to launch a DCOM Server. The server is:
{15A40122-24D2-4FDB-8155-5F65FCE7017F}
The user is [user]/[DOMAIN], SID=S-1-5-21-796845957-839522115-1708537768-1121. "

Our error trapping also shows the following error:

"Error No: 70"," Error: Permission denied"

has anybody encountered this before, any ideas???


TIA


Taff
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 11-26-2003
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
Your COM+ application runs under certain credentials (user). Run dcomcnfg.exe and adjust access and launch permission for desired DCOM service to work with the COM+ app user. This has to work.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 11-26-2003
Junior Member
White Belt
 
Join Date: Nov 2003
Posts: 1
Hi, I've never used the DCOMCnfg utility before, and I'm not sure if I'm doing it right, it's certainly not making a difference!

I loaded up the utility, went to the "Default Security" tab and added my COM+ user to the default launch permissions (the middle section).

I tried the others too, but wan't entirely sure if I was heading down the right track so I set it back to how it was before.

I think this may be the right solution though, because when I run my COM+ App as Administrator it works fine.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4 (permalink)  
Old 11-28-2003
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
I remember a similar problem in the past. Every first time a user starts up MapPoint, it requires user interface to click the intro message. This happens only the very first time a user starts up MP.

If your COM app runs in a Windows station without interactive user interface, this dialog will block MapPoint for ever, or until the process is killed...

Hope this helps
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5 (permalink)  
Old 02-12-2004
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
com+ server activation error

I had the same problem when hosting on xp, to fix I had to untick the checkbox in Security>>Authorization>>"Enforce access checks for this application". This is how all the other server activated objects are setup in com+, once I did that I was able to start it without errors. Before that I couldn't even start it when logged in as admin and using dcomcnfg to start it...

hope that helps.
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
asp or com, calling, mappoint 2004


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
Calling all Micro-ISVs! Winwaed General Chat 2 05-05-2006 12:16 PM
Calling MapPoint From C++ Without the MFC Safety Net Eric Frost MP2K Magazine Articles 3 06-09-2004 08:40 AM
Calling some Foxpro code after addpushpins as stops robinary MapPoint 2006/2009 Discussion 1 04-01-2004 08:01 PM
911 outbound calling LLurie MapPoint 2006/2009 Discussion 4 04-21-2003 10:41 AM
VBA calling MP2k2 rkehn MapPoint 2006/2009 Discussion 2 01-15-2003 12:47 PM


All times are GMT -5. The time now is 10:31 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
MP2K Magazine
Visitor Map


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