C
csw
Environment: Windows 2008 R2
IIS 7.5
I have an ASP program that will run on the server, but it will crash on this
statement "Set oRecordset = oConnection.Execute(strQuery)" when I run in my
desktop using IE 7.
It will run from http://localhost/
It won’t run from http://testserver:80/
What could cause it?
The code like this.
Set oConnection = CreateObject("ADODB.Connection")
Set oRecordset = CreateObject("ADODB.Recordset")
oConnection.Provider = "ADsDSOObject" 'The ADSI OLE-DB provider
oConnection.Open "Active Directory Provider"
strQuery = "<LDAP://DC=gpo,DC=gov>;(&(objectClass=*)(cn=*" & strUID &
"*)(!(userAccountControl:1.2.840.113556.1.4.803:=2)));ADsPath,physicalDeliveryOfficeName,company,department,title,sn,cn,name,givenname,mail,mailNickname,telephoneNumber,otherTelephone,extensionAttribute1,extensionAttribute2,extensionAttribute3,extensionAttribute4;subtree"
Set oRecordset = oConnection.Execute(strQuery)
IIS 7.5
I have an ASP program that will run on the server, but it will crash on this
statement "Set oRecordset = oConnection.Execute(strQuery)" when I run in my
desktop using IE 7.
It will run from http://localhost/
It won’t run from http://testserver:80/
What could cause it?
The code like this.
Set oConnection = CreateObject("ADODB.Connection")
Set oRecordset = CreateObject("ADODB.Recordset")
oConnection.Provider = "ADsDSOObject" 'The ADSI OLE-DB provider
oConnection.Open "Active Directory Provider"
strQuery = "<LDAP://DC=gpo,DC=gov>;(&(objectClass=*)(cn=*" & strUID &
"*)(!(userAccountControl:1.2.840.113556.1.4.803:=2)));ADsPath,physicalDeliveryOfficeName,company,department,title,sn,cn,name,givenname,mail,mailNickname,telephoneNumber,otherTelephone,extensionAttribute1,extensionAttribute2,extensionAttribute3,extensionAttribute4;subtree"
Set oRecordset = oConnection.Execute(strQuery)