Classic ASP error '800a01ad' ActiveX component can't create object

a 夏天 提交于 2019-12-25 02:59:41

问题


we have a system that wasnt designed by us, and part of that system is a classic ASP portal. The portal is currently running with no issues on one of out servers.

We want to do some development work on the portal, so we want to put it on TFS, and than work on it locally. The problem no matter what I tried we cant make it run locally. this is what we tried:

  1. import the IIS setting from the working server
  2. register whatever dll we can think of
  3. Pool is running with system network credentials
  4. pool have 32bit enabled
  5. running it using VS2012
  6. The log files don't seem to have anything useful

The error:

CAMSSession error '800a01ad'

ActiveX component can't create object

/StudentTest/inc/TRSSession.asp, line 17

How can I detect what is it that we are missing? I am assuming it is a dll. We know that it is not a code issue because the website is running okay on the server.

The lines that causes the error:

TRSSession.Acquire GUID, RemoteIP 

in:

    Dim TRSSession
    Dim GUID
    Dim RemoteIP

GUID = CStr(Request.Cookies("TRSSession"))
RemoteIP = Request.ServerVariables("REMOTE_ADDR")

If Not IsObject(Session("TRSSession")) Then
    Set TRSSession = Server.CreateObject("CAMSSession.TRSSession")
    Call TRSSession.Constructor(Application.Value("strSvrName"), Application.Value("strDBName"))
    TRSSession.PortalServiceURI = Application.Value("PortalService")
    TRSSession.IP = RemoteIP
    TRSSession.AllowBatchMode = True
    Set Session("TRSSession") = TRSSession
    TRSSession.Acquire GUID, RemoteIP
Else
    Set TRSSession = Session("TRSSession")
End If

If GUID = "" Then
    If LCase(Request.ServerVariables("HTTPS")) = "on" Then
        Response.AddHeader "Set-Cookie", "TRSSession=" & CStr(TRSSession.GUID) & "; secure; HttpOnly"
    Else
        Response.AddHeader "Set-Cookie", "TRSSession=" & CStr(TRSSession.GUID) & "; HttpOnly"
    End If
End If

Dim TRSSessionF

If Request.QueryString("GUID") <> "" Then
    Set TRSSessionF = Server.CreateObject("CAMSSession.TRSSession")
    Call TRSSessionF.Constructor(Application.Value("strSvrName"), Application.Value("strDBName"))
    TRSSessionF.PortalServiceURI = Application.Value("PortalService")
    TRSSessionF.IP = RemoteIP
    TRSSessionF.Acquire Request.QueryString("GUID"), RemoteIP, True
    TRSSession("TermID") = TRSSessionF("TermID")
    TRSSession("TextTerm") = TRSSessionF("TextTerm")
    TRSSession("SROfferID") = TRSSessionF("SROfferID")
    TRSSession("CourseName") = TRSSessionF("CourseName")
    TRSSession("Course") = TRSSessionF("Course")
    TRSSession("FacultyID") = TRSSessionF("FacultyID")
    TRSSession("FPM") = "True"
    TRSSession("StudentName")= "<span style=""color:Red"">Faculty Preview Mode</span>"
End If

%>

来源:https://stackoverflow.com/questions/33126574/classic-asp-error-800a01ad-activex-component-cant-create-object

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!