Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read SiteMap

Tags: , , , ,

Sponsored Links



ADSI and VB 2008 Error "Cannot Create ActiveX Component"

Software Development


Reply
 
Thread Tools Search this Thread
  #1  
Old 22-05-2009
Member
 
Join Date: May 2009
Location: Perth, Western Australia
Posts: 1
unsure ADSI and VB 2008 Error "Cannot Create ActiveX Component"

Coming from a Visual Basic 6 background I used to make ADSI requests like this:
Code:
        Dim Container As IADsContainer
        Container = GetObject("LDAP://ou=Users,dc=RISCPL,dc=local")
        Container.Filter = "user"
But in Visual Basic 2008 I get errors:

"A first chance exception of type 'System.Exception' occurred in Microsoft.VisualBasic.dll"
"Cannot create ActiveX component."

Having only just installed and started working with 2008, I am guessing I am missing something obvious to get this to work.

If anyone could help out and tell me where I am going wrong, I would very much appreciate it.
Reply With Quote
  #2  
Old 22-05-2009
Expertz's Avatar
Member
 
Join Date: Dec 2007
Posts: 1,432
Re: ADSI and VB 2008 Error "Cannot Create ActiveX Component"

90% of the time this error is due to the first issue. If I understand you correctly, it works for a VB executable, but not for an asp.net web page. If so then this is the second issue, one with permissions/

You may need to either change the process identity (using impersonation) for which the ASP.NET worker process interacts with the component, using a (more) privileged Windows account. Fro more help try looking up impersonation in the MS knowledge base (http://support.micorosft.com/support)

If that does not work, then I suggest you contact the component's vendor, Adobe. It could be a license/usage issue. I'm not familiar with the product, so I can't help you there.
Reply With Quote
  #3  
Old 22-05-2009
Zecho's Avatar
Member
 
Join Date: May 2008
Posts: 2,267
Re: ADSI and VB 2008 Error "Cannot Create ActiveX Component"

Quote:
Originally Posted by Mysteria View Post
"A first chance exception of type 'System.Exception' occurred in Microsoft.VisualBasic.dll"
"Cannot create ActiveX component."
Do you get this error while compiling project in VB, or when you publish it on a server? If while compiling, in which line?

Did you register the DLL that contains this object? It sounds like you're missing some required DLL's.
Reply With Quote
  #4  
Old 22-05-2009
Member
 
Join Date: Dec 2008
Posts: 202
Re: ADSI and VB 2008 Error "Cannot Create ActiveX Component"

I have gone through some blogs related to your problem and i found in their discussion that the code that produces this error is looking for whether outlook is open, if the outlook is not open then this error generates so you just need to check whether your code requires outlook. And I also wanted to know whether wanted to develop ActiveX component using VB 2008?
Reply With Quote
Reply

  TechArena Community > Software > Software Development


Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "ADSI and VB 2008 Error "Cannot Create ActiveX Component""
Thread Thread Starter Forum Replies Last Post
ActiveX component can't create object error Abe Simpson Windows x64 Edition 8 15-06-2011 12:32 AM
Error 429 : ActiveX component can't create object Brad Vista Help 12 30-01-2011 03:04 AM
Error=429 : ActiveX component can't create object RobGG Vista Help 15 30-01-2011 02:30 AM
Error=429: ActiveX component can't create object vibhub Vista Help 2 23-12-2008 07:41 PM
Project Web Access via IE7: "Export Grid to Excel" cause VBSCRIPT (error) message: "The activeX control on which this feature depends could not be created" Soren Mikkelsen Microsoft Project 2 17-01-2007 09:47 PM


All times are GMT +5.5. The time now is 04:02 AM.