Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_components thread: Problem Re - making a dll


Message #1 by "Thomas Eden" <tede461@e...> on Thu, 19 Apr 2001 15:45:50
I have a dll that I registered on my server and use in an ASP page - works 

fine.  Then when I make changes to the dll and try to remake it I get 

a "Permissions denied" error.  I have tried everything from unregistering 

the dll to derefrencing it from my Visual Interdev products.  The wierd 

thing is that if I use VB 6.0 as a test container I can re-make my dll 

just fine, but not if I am using it from my ASP page.  I also let a friend 

register the component on his server and the same thing happened.  

Strangly enough, if I reboot my computer (and thus the web server too) 

then I can re-make the dll -- but only once then I have the same problems 

all over again.  Any one come across this before?



Background info:



unattended/apartment-threaded/binary compatibility.
Message #2 by "Earls, Michael (CORP)" <Michael.Earls@C...> on Thu, 19 Apr 2001 12:09:49 -0400
IIS is locking you DLL.



You'll need to stop the IIS Admin service (which will stop the WWW, SMTP,

FTP, and other IIS services).  Don't forget to restart all of them.



An alternative is to host it in MTS.  Then, you can uninstall it by simply

deleting it from the MTS explorer.  Of course, this comes with its own

requirements and issues, but it could save you some time during development.



Michael Earls



-----Original Message-----

From: Thomas Eden [mailto:tede461@e...]

Sent: Thursday, April 19, 2001 8:46 AM

To: ASP components

Subject: [asp_components] Problem Re - making a dll





I have a dll that I registered on my server and use in an ASP page - works 

fine.  Then when I make changes to the dll and try to remake it I get 

a "Permissions denied" error.  I have tried everything from unregistering 

the dll to derefrencing it from my Visual Interdev products.  The wierd 

thing is that if I use VB 6.0 as a test container I can re-make my dll 

just fine, but not if I am using it from my ASP page.  I also let a friend 

register the component on his server and the same thing happened.  

Strangly enough, if I reboot my computer (and thus the web server too) 

then I can re-make the dll -- but only once then I have the same problems 

all over again.  Any one come across this before?



Background info:



unattended/apartment-threaded/binary compatibility.



Message #3 by "Bruce J. Pezzlo" <bpezzlo@p...> on Thu, 19 Apr 2001 11:56:43 -0400
Your problem is that IIS still holds a lock to your ocx, so you can't

delete it.



When developing, it easier to run the web application in a seperate

memory space from IIS.

Right click on your application folder from IIS in MMC, go to

properties/Home Directory.  Select (or check off depending on the

version of IIS your running) to run the app in a seperate memory space.



Now you can unload the application.  Unregister the old dll.  Delete the

old.  Copy in the new dll. Register the new dll.



Alternatively, if you don't run your app in a seperate memory space, you

have to stop IIS.  Then you'll be able to take the same

unreg/del/copy/reg steps above.



Good luck.

Bruce Pezzlo, MCSD





-----Original Message-----

From: Thomas Eden [mailto:tede461@e...]

Sent: Thursday, April 19, 2001 11:46 AM

To: ASP components

Subject: [asp_components] Problem Re - making a dll





I have a dll that I registered on my server and use in an ASP page -

works

fine.  Then when I make changes to the dll and try to remake it I get

a "Permissions denied" error.  I have tried everything from

unregistering

the dll to derefrencing it from my Visual Interdev products.  The wierd

thing is that if I use VB 6.0 as a test container I can re-make my dll

just fine, but not if I am using it from my ASP page.  I also let a

friend

register the component on his server and the same thing happened. 

Strangly enough, if I reboot my computer (and thus the web server too)

then I can re-make the dll -- but only once then I have the same

problems

all over again.  Any one come across this before?



Background info:



unattended/apartment-threaded/binary compatibility.



Message #4 by "Marco Duarte" <duarte_calderon@h...> on Thu, 19 Apr 2001 16:25:16
I encountered the same problem, but I was writing my component in Java.  

maybe you might want to try this posible solution.  Stop iis(internet 

information services),  Close the browser windows that might be using that 

component, go to the Component services Console and Stop Server Processes.



To Stop IIS use the MSDos command promp and type net stop iisadmin /y



To stop server processes go to the Component Services Console, expand the 

tree to find your computer, right click on it and select stop server 

processes.



To restart IIS type net start w3svc



try to rebuild the dll.



Marco

///*****************////************////***********************///****





>From: "Thomas Eden" <tede461@e...>

>Reply-To: "ASP components" <asp_components@p...>

>To: "ASP components" <asp_components@p...>

>Subject: [asp_components] Problem Re - making a dll

>Date: Thu, 19 Apr 2001 15:45:50

>

>I have a dll that I registered on my server and use in an ASP page - works

>fine.  Then when I make changes to the dll and try to remake it I get

>a "Permissions denied" error.  I have tried everything from unregistering

>the dll to derefrencing it from my Visual Interdev products.  The wierd

>thing is that if I use VB 6.0 as a test container I can re-make my dll

>just fine, but not if I am using it from my ASP page.  I also let a friend

>register the component on his server and the same thing happened.

>Strangly enough, if I reboot my computer (and thus the web server too)

>then I can re-make the dll -- but only once then I have the same problems

>all over again.  Any one come across this before?

>

>Background info:

>

>unattended/apartment-threaded/binary compatibility.

>

Message #5 by "Balajewicz, Greg" <Greg.Balajewicz@A...> on Thu, 19 Apr 2001 11:09:12 -0500
once you create a dll from you asp page the asp 'engine' keeps the dll

locked, in memory. You have to restart the iisadmin service. use this

command : "net stop iisadmin /y"

to start it (and www service) again use "net start w3svc"



see microsoft Article ID: Q200260 for more info.

Greg



-----Original Message-----

From: Thomas Eden [mailto:tede461@e...]

Sent: Thursday, April 19, 2001 11:46 AM

To: ASP components

Subject: [asp_components] Problem Re - making a dll





I have a dll that I registered on my server and use in an ASP page - works 

fine.  Then when I make changes to the dll and try to remake it I get 

a "Permissions denied" error.  I have tried everything from unregistering 

the dll to derefrencing it from my Visual Interdev products.  The wierd 

thing is that if I use VB 6.0 as a test container I can re-make my dll 

just fine, but not if I am using it from my ASP page.  I also let a friend 

register the component on his server and the same thing happened.  

Strangly enough, if I reboot my computer (and thus the web server too) 

then I can re-make the dll -- but only once then I have the same problems 

all over again.  Any one come across this before?



Background info:



unattended/apartment-threaded/binary compatibility.



Message #6 by "Brian Wahoff" <bwahoff@e...> on Thu, 19 Apr 2001 11:42:02 -0500
Try stopping the website (within PWS or IIS) that has referenced the

component before making the new version.  I think ASP still keeps a

reference to it while that site is running.



-----Original Message-----

From: Thomas Eden [mailto:tede461@e...]

Sent: Thursday, April 19, 2001 3:46 PM

To: ASP components

Subject: [asp_components] Problem Re - making a dll





I have a dll that I registered on my server and use in an ASP page - works

fine.  Then when I make changes to the dll and try to remake it I get

a "Permissions denied" error.  I have tried everything from unregistering

the dll to derefrencing it from my Visual Interdev products.  The wierd

thing is that if I use VB 6.0 as a test container I can re-make my dll

just fine, but not if I am using it from my ASP page.  I also let a friend

register the component on his server and the same thing happened.

Strangly enough, if I reboot my computer (and thus the web server too)

then I can re-make the dll -- but only once then I have the same problems

all over again.  Any one come across this before?



Background info:



unattended/apartment-threaded/binary compatibility.



Message #7 by Imar Spaanjaars <Imar@S...> on Thu, 19 Apr 2001 18:52:15 +0200
Using MTS isn't as hard as it sounds, and it will give you a lot of benefits.



Check out the following small FAQ on how to "mts-enable" your component:

http://www.aspfree.com/authors/robert/faq.asp?id=13





Imar





At 12:09 PM 4/19/2001 -0400, you wrote:

>IIS is locking you DLL.

>

>You'll need to stop the IIS Admin service (which will stop the WWW, SMTP,

>FTP, and other IIS services).  Don't forget to restart all of them.

>

>An alternative is to host it in MTS.  Then, you can uninstall it by simply

>deleting it from the MTS explorer.  Of course, this comes with its own

>requirements and issues, but it could save you some time during development.

>

>Michael Earls

>

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

>From: Thomas Eden [mailto:tede461@e...]

>Sent: Thursday, April 19, 2001 8:46 AM

>To: ASP components

>Subject: [asp_components] Problem Re - making a dll

>

>

>I have a dll that I registered on my server and use in an ASP page - works

>fine.  Then when I make changes to the dll and try to remake it I get

>a "Permissions denied" error.  I have tried everything from unregistering

>the dll to derefrencing it from my Visual Interdev products.  The wierd

>thing is that if I use VB 6.0 as a test container I can re-make my dll

>just fine, but not if I am using it from my ASP page.  I also let a friend

>register the component on his server and the same thing happened.

>Strangly enough, if I reboot my computer (and thus the web server too)

>then I can re-make the dll -- but only once then I have the same problems

>all over again.  Any one come across this before?

>

>Background info:

>

>unattended/apartment-threaded/binary compatibility.



Message #8 by Robert Chartier <rchartierh@a...> on Thu, 19 Apr 2001 09:52:27 -0700
this was mentioned in a response already..



an easier way, without having to recycle the IIS services is to break it 

out into its own process, using MTS/Component Services.



consider:



http://www.aspfree.com/authors/robert/faq.asp?id=13









At 09:09 AM 4/19/2001, you wrote:

>once you create a dll from you asp page the asp 'engine' keeps the dll

>locked, in memory. You have to restart the iisadmin service. use this

>command : "net stop iisadmin /y"

>to start it (and www service) again use "net start w3svc"

>

>see microsoft Article ID: Q200260 for more info.

>Greg

>

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

>From: Thomas Eden [mailto:tede461@e...]

>Sent: Thursday, April 19, 2001 11:46 AM

>To: ASP components

>Subject: [asp_components] Problem Re - making a dll

>

>

>I have a dll that I registered on my server and use in an ASP page - works

>fine.  Then when I make changes to the dll and try to remake it I get

>a "Permissions denied" error.  I have tried everything from unregistering

>the dll to derefrencing it from my Visual Interdev products.  The wierd

>thing is that if I use VB 6.0 as a test container I can re-make my dll

>just fine, but not if I am using it from my ASP page.  I also let a friend

>register the component on his server and the same thing happened.

>Strangly enough, if I reboot my computer (and thus the web server too)

>then I can re-make the dll -- but only once then I have the same problems

>all over again.  Any one come across this before?

>

>Background info:

>

>unattended/apartment-threaded/binary compatibility.

>

>

>

Robert Chartier

Author, AspFree.com

xxx-xxx-xxxx

rchartierh@a...

http://www.aspfree.com/devlinks

http://www.aspfree.com/authors/robert

http://www.aspalliance.com/nothingmn



Message #9 by Jerry Diegel <jerry.diegel@h...> on Thu, 19 Apr 2001 11:54:03 -0500
Actually if you successfully set the object = nothing you shouldn't run into

this problem.  Usually this happens to me when the page crashes before I

destroy the object.  COM+ makes this whole process a little bit less

frustrating too.



-----Original Message-----

From: Brian Wahoff [mailto:bwahoff@e...]

Sent: Thursday, April 19, 2001 11:42 AM

To: ASP components

Subject: [asp_components] RE: Problem Re - making a dll





Try stopping the website (within PWS or IIS) that has referenced the

component before making the new version.  I think ASP still keeps a

reference to it while that site is running.



-----Original Message-----

From: Thomas Eden [mailto:tede461@e...]

Sent: Thursday, April 19, 2001 3:46 PM

To: ASP components

Subject: [asp_components] Problem Re - making a dll





I have a dll that I registered on my server and use in an ASP page - works

fine.  Then when I make changes to the dll and try to remake it I get

a "Permissions denied" error.  I have tried everything from unregistering

the dll to derefrencing it from my Visual Interdev products.  The wierd

thing is that if I use VB 6.0 as a test container I can re-make my dll

just fine, but not if I am using it from my ASP page.  I also let a friend

register the component on his server and the same thing happened.

Strangly enough, if I reboot my computer (and thus the web server too)

then I can re-make the dll -- but only once then I have the same problems

all over again.  Any one come across this before?



Background info:



unattended/apartment-threaded/binary compatibility.




  Return to Index