Using a .NET dll in classic ASP

DumAsp

Newcomer
Joined
Oct 4, 2005
Messages
15
Location
Ontario Canada
I am trying to make use of a .NET DLL I created from an older ASP application. When I run the Server.CreateObject I get nothing. I have re written this DLL from an old VB6 dll. I tested the DLL with a .net app and it does work so it is not the dll. i set all the interop stuff up on the build and dit the regasm on the server.

The asp clasic seems to not even try to access the dll, no errors no signs of life whatsoever. The asp page stll loads but returns none of the data the dll is designed to retrieve.

Is it possible to do what I am trying to do or is this a fools venture.
 
1 - Genderate key file using sn -k
2 - Compile .cs file with keyfile option from command prompt
csc /t:library myassembly.cs /keyfile: mykeyfile.snk

3 - add dll to gac
gacutil /i myassembly.dll

4 - run regasm
regasm myassembly.dll /tlb:myassembly.tlb

-lp
 
You may want to make the DLL a .NET Web Service, they are easily accessable through classic (3.0) asp. and you need only parse some simple XML to retrieve your data, and set querystring variables to send values to the function(s)
 
Back
Top