Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_components thread: BEHAVIOUR OF ASP COMP


Message #1 by JATIN_HALDANKAR@U... on Wed, 11 Oct 2000 10:48:58 +0100
HI,



I HAVE CREATED INPROCESS COMPONENT IN VB ON MY STANDALONE MACHINE

HAVING O/S NT-4,IIS-4,ASP-2,VB-6.



I HAVE CREATED TWO CLIENTS USING MY COMPONENT



1.)VB APPLICATION .



2.)ASP APPLICATION.   



 I CAN SUCCESFULLY CALL COMPONENT FROM  BOTH THE CLIENT.

BUT WHEN I UNREGISTER IT USING REGSVR32 /U.

 

  AND I RUN BOTH THE CLIENTS AGAIN . VB APPLICATION GIVES ME AN ERROR.

BUT ASP APPLICATION STILL RUN PROPERLY.



  I WANT TO KNOW WHY ASP APPL RUNS PROPERLY CAUSE AS PER MY KNOWLEDGE

IT SHOULD THROW AN ERROR LIKE VB APPLICATION.





JATIN, 



(jatinh@H... )

Message #2 by "Stephen Haberman" <stephenh@c...> on Wed, 11 Oct 2000 10:45:36 -0500
I think it's because ASP loads the DLL in memory and keeps it until IIS

restarts.  Your VB client lets it go each time it's run and tries to reload

every time.  If you stop and start IIS after running regsvr32 /u on your

dll, I would bet it won't work.



- Stephen



> -----Original Message-----

> From: JATIN_HALDANKAR@U... [mailto:JATIN_HALDANKAR@U...]

> Sent: Wednesday, October 11, 2000 4:49 AM

> To: ASP components

> Subject: [asp_components] BEHAVIOUR OF ASP COMP

>

>

> HI,

>

> I HAVE CREATED INPROCESS COMPONENT IN VB ON MY STANDALONE MACHINE

> HAVING O/S NT-4,IIS-4,ASP-2,VB-6.

>

> I HAVE CREATED TWO CLIENTS USING MY COMPONENT

>

> 1.)VB APPLICATION .

>

> 2.)ASP APPLICATION.

>

>  I CAN SUCCESFULLY CALL COMPONENT FROM  BOTH THE CLIENT.

> BUT WHEN I UNREGISTER IT USING REGSVR32 /U.

>

>   AND I RUN BOTH THE CLIENTS AGAIN . VB APPLICATION GIVES ME AN ERROR.

> BUT ASP APPLICATION STILL RUN PROPERLY.

>

>   I WANT TO KNOW WHY ASP APPL RUNS PROPERLY CAUSE AS PER MY KNOWLEDGE

> IT SHOULD THROW AN ERROR LIKE VB APPLICATION.

>

>

> JATIN,

>

> (jatinh@H... )

>

> ---

> FREE WEB DEVELOPMENT CODE, CONTENT, AND INSIGHTS

> IN YOUR INBOX!

> Get the latest and best HTML, XML, and JavaScript tips, tools, and

> developments from the experts.  Sign up for one or more of EarthWeb?s

> FREE IT newsletters at http://www.earthweb.com today!




> $subst('Email.Unsub')

>

>





Message #3 by Robert Chartier <rchartierh@a...> on Wed, 11 Oct 2000 09:15:17 -0700
first off....ALL CAPS MEANS YOUR YELLING AT US...STOP YELLING!!!!  argh.  :)



if you suceesfully regsvr32 /u dllname.dll

and it still does not free the dll...then recycle the IIS services 

(stop/start/restart the IISAdmin service and all of its children)



If you need an automated way, check...i dont support it.  :)  The original 

source came from microsoft somewhere, but heavily enhanced for logging, and 

you will need to make sure you are stopping/starting all services, and you 

must have the NT/IIS reskits (kill, shutdown, etc...)

http://www.aspfree.com/devlinks/snippets/iis.bat.txt



if that doesnt work...reboot...but it is not likely you will need to go 

that far.



also...



if you use MMC (component services in W2k, or MTS in NT) you can create a 

new package for your dll, and drag/drop it in there...when you need to 

recompile the DLL all you have to do is shutdown the package, and recompile.



this will take the .dll out of the inetinfo.exe process.  there are some 

threading/memory marshalling concerns and it is recommended that you 

consult an expert on the topic regarding which situation is best for you to 

implement.  (in vs out of process)











At 10:45 AM 10/11/2000 -0500, you wrote:

>I think it's because ASP loads the DLL in memory and keeps it until IIS

>restarts.  Your VB client lets it go each time it's run and tries to reload

>every time.  If you stop and start IIS after running regsvr32 /u on your

>dll, I would bet it won't work.

>

>- Stephen

>

> > -----Original Message-----

> > From: JATIN_HALDANKAR@U... [mailto:JATIN_HALDANKAR@U...]

> > Sent: Wednesday, October 11, 2000 4:49 AM

> > To: ASP components

> > Subject: [asp_components] BEHAVIOUR OF ASP COMP

> >

> >

> > HI,

> >

> > I HAVE CREATED INPROCESS COMPONENT IN VB ON MY STANDALONE MACHINE

> > HAVING O/S NT-4,IIS-4,ASP-2,VB-6.

> >

> > I HAVE CREATED TWO CLIENTS USING MY COMPONENT

> >

> > 1.)VB APPLICATION .

> >

> > 2.)ASP APPLICATION.

> >

> >  I CAN SUCCESFULLY CALL COMPONENT FROM  BOTH THE CLIENT.

> > BUT WHEN I UNREGISTER IT USING REGSVR32 /U.

> >

> >   AND I RUN BOTH THE CLIENTS AGAIN . VB APPLICATION GIVES ME AN ERROR.

> > BUT ASP APPLICATION STILL RUN PROPERLY.

> >

> >   I WANT TO KNOW WHY ASP APPL RUNS PROPERLY CAUSE AS PER MY KNOWLEDGE

> > IT SHOULD THROW AN ERROR LIKE VB APPLICATION.

> >

> >

> > JATIN,

> >

> > (jatinh@H... )

> >

> > ---

> > FREE WEB DEVELOPMENT CODE, CONTENT, AND INSIGHTS

> > IN YOUR INBOX!

> > Get the latest and best HTML, XML, and JavaScript tips, tools, and

> > developments from the experts.  Sign up for one or more of EarthWeb?s

> > FREE IT newsletters at http://www.earthweb.com today!




> > $subst('Email.Unsub')

> >

> >

>

>



Rob Chartier

Internet Developer

http://www.aspfree.com/devlinks




  Return to Index