请教高手!!一段ADSI代码的问题!!!
以下代码打**号的一句有问题。
错误类型:
服务器对象, ASP 0177 (0x800401F3)
无效的 ProgID。 该怎样解决呢????????????????
另:这段代码将**句改为:
Set rootDSE = GetObject("LDAP://rootDSE")后,在VB里完全正常!
<%
Dim strGroupCN 'As String
Dim grp 'As ActiveDs.IADsGroup
Dim mbr 'As ActiveDs.IADs
Dim rootDSE 'As ActiveDs.IADs
Dim ServerName 'As String
Dim DomainName 'As String
'Build the "LDAP" string to the group
strGroupCN = "cn=" & "shenhe"
** Set rootDSE = Server.CreateObject("LDAP://rootDSE")
DomainName = rootDSE.Get("defaultNamingContext")
ServerName = Mid(rootDSE.Get("dnshostname"), 1, InStr(rootDSE.Get("dnshostname"), ".") - 1)
'get the Group object
Set grp = CreateObject ("LDAP://" & ServerName & "/" & strGroupCN & ",ou=recipients," & DomainName)
%>