tags:

views:

29

answers:

1

In a classic ASP Website, how can I use a DLL that is a .NET 2.0+ C# and some times VB Library?

Is there any method we can use to consume such library?


Added

...in order to use it in a Hosting Environment?

Well, I can always create a WebService to serve as a "middle-men" but for such huge Libraries is impossible/takes long time... is there a tools for it? that reads the Assembly and creates a Proxy class, kinda what we do with WDSL today?

+4  A: 

You could register this managed assembly as a COM component that could be invoked from the classic asp site using regasm.exe:

regasm.exe /codebase somemanagedassembly.dll

You should also make sure that the assembly is COM visible so that the types it contains could be exposed.

Darin Dimitrov
that would be a no go in a Hosting Environment :(
balexandre
Another option is to expose the functionality contained in this managed library as a standard web service (REST, SOAP, ...).
Darin Dimitrov
You could also take a look at `MSSoap.SoapClient` (http://support.microsoft.com/kb/307033)
Darin Dimitrov