Hi,

i have some problems with an exchange query in asp.
We have a NT4.0 Domain with Exchange5.5. I want to query the Recipients
Container in asp + vbscript to display them on the admin-intranet.

SERVER_X = Win2k Srv + Exchange5.5
SERVER_Y = Win2k Srv + IIS + Intranet
Client_x = WinXP
Client_y = WinNT
Client_z = Win2k Srv


The Code below is in a asp-site on SERVER_Y.

When i view exchange.asp from SERVER_Y i get the Recipients as Result. OK

When i view exchange.asp from any of the Clients i get the following error:
Fehler '80005000'
/Exchange.asp, line 38 (which is the line with Set)

On every machine i am logged on as a domain-admin

Can someone tell me what is wrong in it, please?

thanks

Micha



Begin CODE exchange.asp
------------------------------------------------------------
<%

Dim strExchangeserver, strEmpfaengercontainer, strStandort, strOrganisation,
Container

strExchangeserver = "SERVER_X"
strEmpfaengercontainer = "Recipients"
strStandort = "DEPARTMENT"
strOrganisation = "ORGANISATION"

Set Container = GetObject("LDAP://" & strExchangeserver & "/cn=" &
strEmpfaengercontainer & ",ou=" & strStandort & ",O=" & strOrganisation &
"")

Container.Filter = Array("organizationalPerson")
For Each strRCP in Container
Response.Write ("Anzeigename: " & strRCP.cn & "<BR>")
Response.Write ("Mail-Adresse: " & strRCP.mail & "<BR>")
Response.Write ("Vollständiger ADS-Pfad: " & strRCP.ADsPath & "<BR>")
Response.Write ("Verzeichnisname: " & strRCP.rdn & "<BR>")
Response.Write ("<BR>")
Next

%>
------------------------------------------------------------
End Code