COM & Request Object

Discussion about the open-source Phalanger [?] project.

COM & Request Object

Postby bmarquis@codeplex » April 29th, 2008, 5:48 pm

I have some code in a COM object that I need to be able to instantiate from a PHP web application. This COM object makes heavy use of the ASP.Net Objects, MTS, Request, Response and Session.

Can I use phalanger to instantiate this com object such that these ASP.Net objects would remain accessible to it? I'm using the following code in my dll to access them:

this.mts = CREATEOBJECT("MTxAS.AppServer.1")
IF !ISNULL(this.mts)
this.request = this.mts.getObjectContext().Item("Request")
this.response = this.mts.getObjectContext().Item("Response")
this.session = this.mts.getObjectContext().Item("Session")
this.server = this.mts.getObjectContext().Item("Server")
ENDIF
bmarquis@codeplex
 
Posts: 2
Joined: January 7th, 2012, 8:54 pm

Return to Phalanger project

Who is online

Users browsing this forum: No registered users and 12 guests

cron

User Control Panel

Login

Who is online

In total there are 12 users online :: 0 registered, 0 hidden and 12 guests (based on users active over the past 5 minutes)
Most users ever online was 256 on March 28th, 2024, 9:42 am

Users browsing this forum: No registered users and 12 guests