Tech Off Thread

2 posts

Forum Read Only

This forum has been made read only by the site admins. No new threads or comments can be added.

Problems with ASPTypeLibrary in .NET 2.0

Back to Forum: Tech Off
  • User profile image

    I have a DLL with the following

    Dim MyRequest as ASPTypeLibrary.Request
    Dim MySession as ASPTypeLibrary.Session

    Public Sub onStartPage( byRef ASPsc as ASPTypeLibrary.ScriptingContext)

    MyRequest = ASPsc.Request
    MySession = ASPsc.Session

    End Sub

    Publice Sub DoSomthing()

    MySession("What") = MyRequest.ServerVariables("REMOTE_ADDR").ToString

    End Sub

    When I look at the "What" session variable it contains "System.__ComObject" instead of the REMOTE ADDR it is supposed to.  What's up?



  • User profile image


    I have the same problem and the only way that i found to resolve it, was to create a Property of the type Object on my Class and pass the Response object of the asp page.

    Inside of Class i can access to all methods and properties of the Response object or another that you have passed by the Class Property.

Conversation locked

This conversation has been locked by the site admins. No new comments can be made.