Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_components thread: new


Message #1 by "Julian Eduardo de Anquin" <jdeanquin@1...> on Thu, 8 Feb 2001 09:40:16 -0300
Hi, i´m new in the list.

My question is the following , i´m devoloping dll´s por my asp aplication,

but when i need to replace my dll on the webserver i cannot because it says

that it´s being used by another program, i tried unregistering it but it

does not work.

the only solution I´ve found is to reset my webserver, and, of course, i

cannot do tha every time i need to replace a dll.

thanks a lot

Julian Eduardo de Anquin

Asp Developer

jdeanquin@1...







Message #2 by Imar Spaanjaars <Imar@S...> on Thu, 08 Feb 2001 14:50:46 +0100
Yes, that is correct. The webserver locks the DLL. You can indeed restart

the webserver (either by hand, or by a batch file) or move your component

inside a COM+ / MTS package.

This sounds scarier than it is.



Here's how to do it (I'll describe it for Win 2K, but it's about the same

for NT4)



1. Open up COM+ Services in Start | Programs | Administrator Tools (It's

called MTS in NT 4)

2. Expand Component Services | Computers | your computer (My computer, to

be exact ;-))

3. Expand COM+ applications

4. Right click COM+ applications and choose New | Application

5. Click next and choose "Empty application"

6. Enter a (arbitrary) name and click next

7. Enter the details for a user account you want the component to run

under. Leaving it to interactive can be dangerous. Suppose somebody without



rights logs in, then your component will no longer work. It's better to

specify a user.

8. Click finish

9. Expand your newly created package and right click Components and choose



New | Component

10. Click Next, then choose "Install new components"

11. Click add and browse for your DLL

12 Click next again and click finish.



Now your component is inside a package, which you can easily shutdown. When



you have compiled your DLL and tested it in your ASP page, return to COM+

Services, right click the package (with the name you gave in step 6) and

choose Shut down. This will release the lock on your DLL so you can

recompile it again.



ASPToday has published some very interesting articles on MTS / COM+

services. They describe the benefits of using MTS / COM+ (including

transactions) and how to set it up and use it.



However, the methods described above alone are already worth getting into

 MTS.



Please.let me know if this worked for you.



Imar











At 09:40 AM 2/8/2001 -0300, you wrote:

>Hi, i=B4m new in the list.

>My question is the following , i=B4m devoloping dll=B4s por my asp

 aplication,

>but when i need to replace my dll on the webserver i cannot because it says

>that it=B4s being used by another program, i tried unregistering it but it

>does not work.

>the only solution I=B4ve found is to reset my webserver, and, of course, i

>cannot do tha every time i need to replace a dll.

>thanks a lot

>Julian Eduardo de Anquin

>Asp Developer

>jdeanquin@1...



Message #3 by "Luis Abreu" <luisabreu@n...> on Thu, 8 Feb 2001 13:49:02 -0000
You're developing dll for the server, right? If so, then you must stop it

when you want to rebuild the dll. That's because the dll gets loaded in the

space of inetinfo.exe.

I think that IIS5.0 resolves this problem, though I'm not sure.



I think that the atl list at microsoft has a thread about it (which explains

with details how your dll gets loaded , etc, ect). Just do a search here for

asp components



http://discuss.microsoft.com/archives/atl.html



Luis Abreu



-----Mensagem original-----

De: Julian Eduardo de Anquin [mailto:jdeanquin@1...]

Enviada: quinta-feira, 8 de Fevereiro de 2001 12:40

Para: ASP components

Assunto: [asp_components] new





Hi, i´m new in the list.

My question is the following , i´m devoloping dll´s por my asp aplication,

but when i need to replace my dll on the webserver i cannot because it says

that it´s being used by another program, i tried unregistering it but it

does not work.

the only solution I´ve found is to reset my webserver, and, of course, i

cannot do tha every time i need to replace a dll.

thanks a lot

Julian Eduardo de Anquin

Asp Developer

jdeanquin@1...










  Return to Index