Hi,

 

http://groups.google.com/groups?hl=en
<http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&threadm=d407f560.030
9161945.16843ff4%40posting.google.com&rnum=1&prev=/groups%3Fq%3Dasp%2520
%2520server.createobject%2520ASP.NET%2520component%26hl%3Den%26lr%3D%26i
e%3DUTF-8%26sa%3DN%26tab%3Dwg>
&lr=&ie=UTF-8&threadm=d407f560.0309161945.16843ff4%40posting.google.com&
rnum=1&prev=/groups%3Fq%3Dasp%2520%2520server.createobject%2520ASP.NET%2
520component%26hl%3Den%26lr%3D%26ie%3DUTF-8%26sa%3DN%26tab%3Dwg

 

Paddo said:

 

If you make your ASP.NET components COM Interopable, you can use them
from ASP using server.CreateObject. There are a variety of rules that
you need to follow and more can be found in the MSDN Library but
basically you need to do the following:
 
* Register assembly for COM Interop (on development machine this is in
the build configuration for the Project, a bit more complicated when
deploying)
* Make classes implement Interfaces
* Include Guid attributes on both the class and the interface
 
Say your class is YourCompany.YourNamespace.YourClass, then you could
invoke from ASP using:
set instance =
Server.CreateObject("YourCompany.YourNamespace.YourClass");
 
then you can call methods, set and get properties etc the same as you
normally would with a COM component from ASP.

 

 

 

 

 

GetSmartPaul

 

 

-----Original Message-----
From: Adelle Hartley [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 19, 2004 11:01 PM
To: [EMAIL PROTECTED]
Subject: RE: [AspClassicAnyQuestionIsOk] ASP components

 

> Hi,
> 
> I'm trying to use VS.NET to create a dll I can use in a 
> classic asp page. I've never done this before.  Any 
> instructions would help. I created a class library compiled 
> to a dll and try to use
> Server.CreateObject("Mynamespace.Class") but I get an error. 
> I guess I need to register the dll but am not sure how... 
> Using IIS 5.0 Win2K...
> 
> Thanks for the help...

RegSvr32.exe "YourDllPath"

To unregister:

RegSvr32.exe /u "YourDllPath"

VB6 has a "feature" whereby your registry will fill up with rubbish and
your
system will slowly (over a period of months) grind to a halt if you
don't
unregister between builds or use strict procedures regarding binary
compatibility.  As far as I know, this is not a problem with VS.Net, but
then I reformat my hard drive every 30 days so I wouldn't know.

Which VS.Net language are you using to build the DLL?

Adelle.







Yahoo! Groups Sponsor



ADVERTISEMENT
 
<http://us.ard.yahoo.com/SIG=129mip6fb/M=298184.5285298.6392945.3001176/
D=groups/S=1705006764:HM/EXP=1093096510/A=2319501/R=0/SIG=11tq0u909/*htt
p:/www.netflix.com/Default?mqso=60185353&partid=5285298> click here


 
<http://us.adserver.yahoo.com/l?M=298184.5285298.6392945.3001176/D=group
s/S=:HM/A=2319501/rand=842823916> 

 

  _____  

Yahoo! Groups Links

*         To visit your group on the web, go to:
http://groups.yahoo.com/group/AspClassicAnyQuestionIsOk/
  

*         To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]
subscribe> 
  

*         Your use of Yahoo! Groups is subject to the Yahoo! Terms of
<http://docs.yahoo.com/info/terms/>  Service. 



[Non-text portions of this message have been removed]



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/saFolB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/AspClassicAnyQuestionIsOk/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

Reply via email to