|
| |||||||||
| Tags: activex, adsi, visual basic, visual basic 2008, visual basic 6 |
![]() |
| | Thread Tools | Search this Thread |
|
#1
| |||
| |||
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" "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. |
|
#2
| ||||
| ||||
| 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.
__________________ Education, Career and Job Discussions |
|
#3
| ||||
| ||||
| Re: ADSI and VB 2008 Error "Cannot Create ActiveX Component" Quote:
Did you register the DLL that contains this object? It sounds like you're missing some required DLL's. |
|
#4
| |||
| |||
| 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? |
![]() |
|
| Thread Tools | Search this Thread |
| |
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 |