locked
Application-defined or object-defined error RRS feed

  • Question

  • I am calling VB component files from the ASP file and I am getting the Application-defined or object-defined error.
    And I register all the Dll's.
    Here is my code
    <%
    Response.Buffer=True
    Response.Expires=0

    If (VarType(Application("~WC~WebClassManager")) = 0) Then
     Application.Lock
     If (VarType(Application("~WC~WebClassManager")) = 0) Then
      Set Application("~WC~WebClassManager") = Server.CreateObject("WebClassRuntime.WebClassManager")
     End If
     Application.UnLock
    End If

    Application("~WC~WebClassManager").ProcessNoStateWebClass "WCPolicyUI.app2", _
      Server, _
      Application, _
      Session, _
      Request, _
      Response
    %>

    And from the code which is in bold, I am getting the error

    Tuesday, July 14, 2009 3:00 PM

Answers