IIS6, ActiveX, and database access

D

DavidG

I'm migrating a legacy intranet site from an IIS5 to IIS6 server. The
site uses ActiveX DLLs to access a SQL database. The problem is that
everything runs fine when hitting localhost from the server, but the
database access appears not to work.

Each page gets the Windows logon name and converts it to an ID:

-----
set obj = server.CreateObject("TN.CClassName")

strUserName = Request.ServerVariables("LOGON_USER")
lngUserID = Session("UserID")

if lngUserID = "" or lngUserID = 0 then

lngUserID = obj.GetUserID(strUserName)
Session("UserID") = lngUserID

if lngUserID = 0 then
Response.Redirect "Errors/UnknownUser.asp?User=" & strUserName
end if

end if
-----

Since a remote request always winds up on the UnknownUser page, I'm
assuming that the DLL is fine but can't get to the database (since the
CreateObject call didn't fail, and since all is well from localhost).

It's obviously a permissions issue, but where?

Thanks,
David
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,226
Members
46,815
Latest member
treekmostly22

Latest Threads

Top