Can i Use .NET dlls (C#) in ASP 3.0

  • Thread starter Thread starter Bernardo Heynemann
  • Start date Start date
B

Bernardo Heynemann

Is it possible?
My server would have the framework installed and the dll
properly registered.

Thanx for any help.

Bernardo Heynemann
Developer@BancoBva S/A - Brazil
 
Sure, you just need to explose your C# assembly to COM via regasm.
-mike
MVP
 
Yes, but you have to create a COM interop DLL, the interop DLL will be
a ActiveX/COM object that you can reference from classic ASP (ASP3.0),
VB6, etc... If you're using Visual Studio.NET 2003 this is as easy as
going into your solution settings->Configuration and under Output(s)
set "Register for COM Interop" to True. Under General properties you
can set the "Wrapper assembly key name" this would be the unique
ActiveX key that's going to go in the registry/unique name you'll
reference when you call CreateObject(...) from ASP.

http://msdn.microsoft.com/library/d.../html/vcwlkCOMInteropPart1CClientTutorial.asp

If you're not working inside Viusal Studio.NET then you can create the
wrapper dlls from the command propt. Look in the QuickStart tutorials
for how to do this.
 
Thanks a lot man!

Bernardo Heynemann
-----Original Message-----
Yes, but you have to create a COM interop DLL, the interop DLL will be
a ActiveX/COM object that you can reference from classic ASP (ASP3.0),
VB6, etc... If you're using Visual Studio.NET 2003 this is as easy as
going into your solution settings->Configuration and under Output(s)
set "Register for COM Interop" to True. Under General properties you
can set the "Wrapper assembly key name" this would be the unique
ActiveX key that's going to go in the registry/unique name you'll
reference when you call CreateObject(...) from ASP.

http://msdn.microsoft.com/library/default.asp? url=/library/en-
us/csref/html/vcwlkCOMInteropPart1CClientTutorial.asp

If you're not working inside Viusal Studio.NET then you can create the
wrapper dlls from the command propt. Look in the QuickStart tutorials
for how to do this.




"Bernardo Heynemann" <[email protected]> wrote in
.
 
Back
Top