Microsoft KB Archive/301411

= PRB: Error Message: Activex Component Cannot Create Bbject: GetObject =

PSS ID Number: 301411

Article Last Modified on 10/20/2003

-

The information in this article applies to:


 * Microsoft Active Directory Services Interface, Microsoft Active Directory Client
 * Microsoft Active Directory Services Interface, System Component

-



This article was previously published under Q301411



SYMPTOMS
When you are using ADSI from an DHTML/HTML page, you may receive the following error message:

ActiveX Component cannot create object: GetObject



CAUSE
To protect Web users from malicious programmers, many objects may be determined by Microsoft Internet Explorer to be unsafe for scripting. By default, ADSI is one of these objects.



RESOLUTION
The Platform SDK includes the ADsFactory ADSI resource kit object. You can use this component to use ADSI from a client script in Internet Explorer. The client computer must have this component (Adsfactr.dll) registered and ADSI installed. Your browser security requires &quot;Initialize and script ActiveX controls not marked as safe&quot; to be set to enabled or prompt.



STATUS
This behavior is by design.



MORE INFORMATION
To view samples of IADsFactory implementation:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/netdir/adsi/iads_getinfo.asp

