Marco Trova's weblog

Italian .NET life

Execute ASP code from ASP.NET: is it a weird idea?

Often we have to integrate existing work with new technologies and frameworks. We can sell a migration of a site written in ASP to ASP.NET: our customer understands only that they have a similar name but  we know that they have nothing in common. No sharing of session state, ASP.NET cannot apply his security to a resource mapped on different ISAPI (e.g. ASP pages), etc.

So, reading a couple of old articles of Dino Esposito from MSDN Magazine 2000, it was born a little crazy idea: execute ASP code from ASP.NET.

The solution consists in mapping ASP files to the aspnet_isapi.dll and writing a simple HttpHandler that executes ASP code with a simple COM object written in Visual Basic 6.0.

The simplest part is executing ASP, add minimal Request and Response objects support, as just demonstrated in the Dino's articles.

The hard part is to rebuild all classic ASP Objects (Request, Response, Server, etc) and fit them in the new execution environment.

Is it a so weird idea?

Comments

Scott Galloway said:

Hi, there's already a solution for this (albeit commercial and not exactly cheap), ASPBridge:
http://www.iprisma.com/aspbridge/
# April 10, 2004 11:07 AM

Stefano Demiliani said:

What about performance of this solution?
# April 10, 2004 1:00 PM

Marco Trova said:

Scott, I mean executing ASP code and serving result HTML through ASP.NET, which is different than bridge session and security with aspbridge.
# April 10, 2004 2:21 PM

Marco Trova said:

Stefano, I am in the middle to implement ASP objects, so I can test real pages, with navigation and POSTs.. I'll post the results.
# April 10, 2004 2:22 PM

Jon Galloway said:

Great idea! Very interested in how this turns out.
# April 10, 2004 3:19 PM

TrackBack said:

# April 15, 2004 5:40 AM

TrackBack said:

# April 15, 2004 6:34 AM

Bertrand Le Roy said:

# April 15, 2004 3:58 PM

TrackBack said:

^_^,Pretty Good!
# April 9, 2005 11:29 PM

safafs said:

this is all bull shit man

# August 30, 2007 2:20 AM

Beats By Dre said:

Thanks for your article. It's just what I was searching for. I am always interested in this subject. And i will bookmark it so can use for next time!

Thank for your share!

# December 13, 2011 2:29 AM
Leave a Comment

(required) 

(required) 

(optional)

(required)