locked
ObjectContext items collection is empty RRS feed

  • Question

  • Hi all, I have ported a COM+ written in VB 6.0 to run in ASP.NET 3.5 and am attempting to debug locally -- My client is an ASP.NET application-- the target client will actually be a classic ASP application, but we aren't allowed to run IIS on our development machines, so I'm just trying to get the code to work with ASP.NET for now. When I step into the code I am able to get the ObjectContext but the items collection is empty. What am I doing wrong??? Please help ! Here's the code segment -- Public Sub TestMethodObjectCtxt() Dim objContext As ObjectContext Dim objResponse As Response Dim objRequest As Request Dim objApplication As Application Dim objSession As Session Dim objAppServer = New AppServer objContext = objAppServer.GetObjectContext() objApplication = objContext("Application") ' Obtain ASP Application object. objSession = objContext("Session") ' Obtain ASP Session object. objResponse = objContext("Response") ' Obtain ASP Response object. objRequest = objContext("Request") ' Obtain ASP Request object. 'This code uses the Response object (objResponse). 'You can use other intrinsic objects in a similar fashion. If Not objResponse Is Nothing Then objResponse.Write("Hello World!") End If End Sub
    Wednesday, October 13, 2010 1:39 PM

Answers

  • Hello,

                 Thank you for your post!  I would suggest creating a new thread for your question in the ASP forums  located here:  http://forums.asp.net

                  Hope that would be helpful!

                  Have a great day!

                  Thanks & regards


    Shivendra Pratap Singh Tier 2 Application Support Server and Tools Online Operations Team
    Thursday, October 14, 2010 8:27 AM