473,387 Members | 1,590 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Cannot create ActiveX component : GetObject("LDAP://rootDSE")

Hi Folks,

I'm using .NET framework 2.0

My code errors out on the below line:
objRootDSE = GetObject("LDAP://rootDSE")

The error message is "Cannot create ActiveX component".

The same code works fine in my development Win2000 PC where I'm using
MS Visual Web Developer 2005 integrated with IIS but gives the error
when I move it to a Win2000 server with IIS 5.0 in the same network.

What am I missing here?

Thanks!
mirin

Jul 24 '07 #1
2 5027
On Jul 24, 8:06 am, mirin <zenst...@gmail.comwrote:
Hi Folks,

I'm using .NET framework 2.0

My code errors out on the below line:
objRootDSE = GetObject("LDAP://rootDSE")

The error message is "Cannot create ActiveX component".

The same code works fine in my development Win2000 PC where I'm using
MS Visual Web Developer 2005 integrated with IIS but gives the error
when I move it to a Win2000 server with IIS 5.0 in the same network.

What am I missing here?

Thanks!
mirin
In .NET you should use System.DirectoryServices
http://www.google.com/search?hl=en&q...rvices+asp.net

Jul 24 '07 #2
Thanks Alexy.
I did attempt to use System.DirectoryServices which introduced a
different set of complexity I'd need a separate thread to discuss in.

What I want to figure out is what are the possible reasons my code
errors out in:
objRootDSE = GetObject("LDAP://rootDSE")

On Jul 24, 4:39 pm, Alexey Smirnov <alexey.smir...@gmail.comwrote:
On Jul 24, 8:06 am, mirin <zenst...@gmail.comwrote:


Hi Folks,
I'm using .NET framework 2.0
My code errors out on the below line:
objRootDSE = GetObject("LDAP://rootDSE")
The error message is "Cannot create ActiveX component".
The same code works fine in my development Win2000 PC where I'm using
MS Visual Web Developer 2005 integrated with IIS but gives the error
when I move it to a Win2000 server with IIS 5.0 in the same network.
What am I missing here?
Thanks!
mirin

In .NET you should use System.DirectoryServiceshttp://www.google.com/search?hl=en&q=System.DirectoryServices+asp.net- Hide quoted text -

- Show quoted text -

Jul 24 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Big Dave | last post by:
Hello All, I was wondering wether anyone could help me solve what is probably a very easy issue. I keep getting this damn "The administrative limit for this request was exceeded" whenever I try to...
0
by: Vincent | last post by:
This is the code for a LDAP connection : ******************************************************* DirectoryEntry entry = new DirectoryEntry("LDAP://my_provider/c=us", null, null,...
2
by: Joebloggs | last post by:
Hi I am trying to do an ldap lookup. I can pick up the domain name in the standard format DOMAIN\USERNAME. The problem is the company I work for expects the query in the format DOMAIN:USERNAME....
4
by: Jim in Arizona | last post by:
I'm new to aspnet with only limited experience with classic asp. Since I'm on a domain and all users are authenticated. In the past using classic asp I used request.servervariables("auth_user") to...
3
by: =?Utf-8?B?Sm9l?= | last post by:
I know that I have posted this question before, but it is still unresolved and I don't know where to turn to next. I have code that is creating a user (works fine), then sets the account flags...
2
by: magyar.laszlo | last post by:
Hi ! I have an activex .net dll in a webpage. This activeX is trying to connect to an LDAP server using System.DirectoryServices. Unfortunatelly it gets always "request for the permission of...
1
by: lezeou | last post by:
Hi, I'm trying to write an ASP page to create a user with an Exchange Mailbox. The user is create very well but i've got this error message when i try to create the mailbox : error '80072020' ...
3
by: aydeejay | last post by:
I'm trying to troubleshoot an issue where users are not able to bind with LDAP via "GetObject" through our ASP Classic Intranet if they stay logged in overnight (beyond their allowed login hours). ...
5
by: Mark B | last post by:
Hi experts, I'm converting a homebrew AD management progam I wrote, from VB6 to VB 2008. I've got some code that sticks values in to Active Directory like this:- objOU.PutEx...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.