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
.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top