Link to home
Start Free TrialLog in
Avatar of colemaj1
colemaj1

asked on

Does ActiveDs work under Win2000 SP4?

I have an app which imports the Active Directory Services dll, ActiveDs.dll.  To simplify things, it basically only contains this line of code just to access the activeds.

private void OnTestButtonPushed(object sender, System.EventArgs e)
{
   ADsSecurityUtility asu = new ADsSecurityUtilityClass();
}

The app is compiled on a WinXP Pro SP2 machine dotnet 1.1 and runs fine.  When run on a win2000 SP4 dotnet 1.1 machine I get this error:

   'COM object with CLSID {F270C64A-FFB8-4AE4-85FE-3A75E5347966} is either not valid or not registered'

Now, noticed that the version of ActiveDs.dll on the XP machine is 5.1.2600.2180, while the version on the win2k machine is 5.0.2195.6601.  Does microsoft change the CLSID with each new version of the file?  I thought about copying activeds.dll from the XP machine to the 2k machine and then registering, but I think that might be bad for the 2k machine as the new version might conflict with other things besides my app.  Does it mean I have to compile my app on a 2k machine to function there?

Avatar of colemaj1
colemaj1

ASKER

I found something else interesting. I copied activeds.dll and activeds.tlb to my XP developement machine and imported this version into my project instead.  I recompiled and then tried to run it again on the win2k machine - same error.  Also, just to be sure on the win2k machine, I re-registered activeds.dll using regsvr32.exe.  Still same error.
ASKER CERTIFIED SOLUTION
Avatar of ihenry
ihenry

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial