473,386 Members | 1,798 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

How do I unload/replace dll without stopping server?

I have a "homegrown" dll that I am using in IIS (VBScript). I need to
replace it on a production server, but I don't want to stop/restart server
in order to replace the dll.

Possible?
TIA,

Larry Woods
Jul 19 '05 #1
11 14418
Larry Woods wrote:
I have a "homegrown" dll that I am using in IIS (VBScript). I need to
replace it on a production server, but I don't want to stop/restart server
in order to replace the dll.

Possible?
TIA,

Larry Woods

No.
Jul 19 '05 #2
> but I don't want to stop/restart server in order to replace the dll.

Possible?


Nope, the DLL will remain in memory as long as the IIS services remain
running.

--
http://www.aspfaq.com/
(Reverse address to reply.)
Jul 19 '05 #3
Larry Woods wrote:
I have a "homegrown" dll that I am using in IIS (VBScript). I need to
replace it on a production server, but I don't want to stop/restart
server in order to replace the dll.

Possible?
TIA,

Larry Woods

Usually no, it is not possible.

If you configure your application to run in isolated mode (High security),
you will sometimes be able to unload the application in order to unregister,
replace and register a dll. But this does not always work.

Bob Barrows
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Jul 19 '05 #4
Right. I have found that "unloading" the application does allow me to
replace the dll, but when I click the "unload"
button I get the "all applications in the application pool will be stopped"
(paraphrased). What is the definition of the "application pool". IOW, will
this stop OTHER applications running on the server?

TIA,

Larry Woods

"Bob Barrows [MVP]" <re******@NOyahoo.SPAMcom> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Larry Woods wrote:
I have a "homegrown" dll that I am using in IIS (VBScript). I need to
replace it on a production server, but I don't want to stop/restart
server in order to replace the dll.

Possible?
TIA,

Larry Woods Usually no, it is not possible.

If you configure your application to run in isolated mode (High security),
you will sometimes be able to unload the application in order to

unregister, replace and register a dll. But this does not always work.

Bob Barrows
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.

Jul 19 '05 #5
in case it wasn't clear, you dont have to reboot the server, just
stop/restart the IIS service.

--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"Larry Woods" <la***@NOSPAMlwoods.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
I have a "homegrown" dll that I am using in IIS (VBScript). I need to
replace it on a production server, but I don't want to stop/restart server
in order to replace the dll.

Possible?
TIA,

Larry Woods

Jul 19 '05 #6
I'm not sure: I've never seen that message. You may want to ask on the iis
group if nobody here answers.

Bob Barrows
Larry Woods wrote:
Right. I have found that "unloading" the application does allow me to
replace the dll, but when I click the "unload"
button I get the "all applications in the application pool will be
stopped" (paraphrased). What is the definition of the "application
pool". IOW, will this stop OTHER applications running on the server?

TIA,

Larry Woods

"Bob Barrows [MVP]" <re******@NOyahoo.SPAMcom> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Larry Woods wrote:
I have a "homegrown" dll that I am using in IIS (VBScript). I need
to replace it on a production server, but I don't want to
stop/restart server in order to replace the dll.

Possible?
TIA,

Larry Woods

Usually no, it is not possible.

If you configure your application to run in isolated mode (High
security), you will sometimes be able to unload the application in
order to unregister, replace and register a dll. But this does not
always work.

Bob Barrows
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get
a quicker response by posting to the newsgroup.


--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Jul 19 '05 #7
> "all applications in the application pool will be stopped" (paraphrased).

You might have better luck if, instead of paraphrasing, you actually tell us
the actual message you actually received. Then, we could search for the
error message and do a bit of research. With a paraphrase, we have no idea
what to look for.

--
http://www.aspfaq.com/
(Reverse address to reply.)
Jul 19 '05 #8
Larry Woods wrote:
Right. I have found that "unloading" the application does allow me to
replace the dll, but when I click the "unload"
button I get the "all applications in the application pool will be
stopped" (paraphrased). What is the definition of the "application
pool". IOW, will this stop OTHER applications running on the server?


So you're using Server 2003, right? In that case, you ought to be able to
cycle the application pool. With any luck, this application has been set up
with its own application pool, so cycling it does not require interruption
of the rest of your web apps.

-- Windows Server 2003 only --
• Open IIS Manager
• Navigate to your web application
• View its properties to determine the application pool it is running under
• Expand Application Pools
• Right-click on appropriate one and select [Recycle]

--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms. Please do not contact
me directly or ask me to contact you directly for assistance. If your
question is worth asking, it's worth posting.
Jul 19 '05 #9
I wrote:
Larry Woods wrote:
Right. I have found that "unloading" the application does allow me
to replace the dll, but when I click the "unload"
button I get the "all applications in the application pool will be
stopped" (paraphrased). What is the definition of the "application
pool". IOW, will this stop OTHER applications running on the server?


So you're using Server 2003, right? In that case, you ought to be
able to cycle the application pool...


Ugh. I hate when people don't answer the question at hand. The answer is a
big "it depends". The good news is that you can usually make it a "no" even
as you isolate it for future use. If the app is in a shared application pool
(which it will be by default), you can simply create an application pool and
reassign that pool to the application you want to cycle.

So...in principle, you should be able to change that DLL without
interrupting the other apps. In principle, anyway.

--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms. Please do not contact
me directly or ask me to contact you directly for assistance. If your
question is worth asking, it's worth posting.
Jul 19 '05 #10
And you go about creating an application pool, how?

(IIS 5.0, BTW)

Larry

"Dave Anderson" <GT**********@spammotel.com> wrote in message
news:OV**************@TK2MSFTNGP12.phx.gbl...
I wrote:
Larry Woods wrote:
Right. I have found that "unloading" the application does allow me
to replace the dll, but when I click the "unload"
button I get the "all applications in the application pool will be
stopped" (paraphrased). What is the definition of the "application
pool". IOW, will this stop OTHER applications running on the server?
So you're using Server 2003, right? In that case, you ought to be
able to cycle the application pool...


Ugh. I hate when people don't answer the question at hand. The answer is a
big "it depends". The good news is that you can usually make it a "no"

even as you isolate it for future use. If the app is in a shared application pool (which it will be by default), you can simply create an application pool and reassign that pool to the application you want to cycle.

So...in principle, you should be able to change that DLL without
interrupting the other apps. In principle, anyway.

--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use of this email address implies consent to these terms. Please do not contact me directly or ask me to contact you directly for assistance. If your
question is worth asking, it's worth posting.

Jul 19 '05 #11
Larry Woods wrote:
I have a "homegrown" dll that I am using in IIS (VBScript). I need to
replace it on a production server, but I don't want to stop/restart server
in order to replace the dll.
Possible?


from
http://www.google.com/groups?q=compo...-pc.org&rnum=3

Handling component modification on production servers
================================================== ===

Motivation:
A modified component is a *different piece of software* than the
original component. For that reason, it (both source and object code)
*should have a different name*. The name should include the version of
the component. This is useful primarily for assisting you in tracking
which version of a component is in production, but has other uses. So...

Method:
1. Every time you modify a component, *give it a new name*, preferably
one that indicates the version. e.g.,
myobject = Server.CreateObject( "myspritzer1.seltzer")
is supplanted by the new component
myobject = Server.CreateObject( "myspritzer2.seltzer")

Now since you don't want to modify all of your ASP CreateObject calls
each time you modify the component, instead do the following:

2. In all your ASP code, don't hard-code the object name as shown in 1.
above. Instead use a variable name, e.g.:
myobject = Server.CreateObject( strSeltzerObject )
This code need never change.

3. Define strSeltzerObject in an Include file used by all ASP pages that
reference the component:
Const strSeltzerObject = "myspritzer1.seltzer"

4. Register the new component. Now both components are available to ASP
pages, but only the old component is being used by production ASP code.

5. When you're ready to bring the new component into production, modify
the Include file entry to point to the new component:
strSeltzerObject = "myspritzer2.seltzer"
Once this change is complete, ASP pages will begin using the new
component.

If problems develop, you can quickly rollback to the old version by
modifying the Include file to point to the old component.

The old component remains locked by the server. Eventually the server
will have to be stopped and restarted, so you shouldn't have to wait
more than a day or two!-)) Once the server has been stopped and
restarted, you may delete the old component if you wish.

Good Luck,
Michael D. Kersey
Jul 19 '05 #12

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Mirano | last post by:
Hi everybody. I load an assembly into another AppDomain, not a default one. As there is no way to unload the assembly, I need to unload the domain. This is where the app hangs. The problem is...
1
by: Luis Pinho | last post by:
Hi There, I've got a server that is waiting for requests, these request correspond to calls to objects that are specified in assemblies stored in the GAC. To do this, I use reflection to call...
6
by: Wal Turner | last post by:
Hi there. There are various snippets on forums regarding issues with AppDomain.Unload and how it just doesnt work. Fortunately, I got it working with the base case, after much fiddling. Consider...
2
by: brianbender | last post by:
I am trying to load and unload assemblies dynamically and call methods and properties when loaded into an Appdomain I can load assemblies all day in the current AppDomain without references and...
1
by: hal | last post by:
I have an application that includes an activex component that consumes resources that must be released when the a page is unloaded. Toward this end I subscribe to the unload event of the body...
1
by: Hal | last post by:
My most sincere gratitude to anyone who can help me work around this! I have work that needs to be done in javascript on the client whenever a page is unloaded. To this end, I subscribe to...
3
by: Gauthier Segay | last post by:
Hello, I've an application where all my pages implement a PAGE_CODE string property, this property is stored in HttpContext.Current.Items. In some page, I must persist data in session while...
2
by: jsimons | last post by:
If the user accidentally clicks the X close button I'm using the following code in the form unload event to stop them from accidentally quitting Access. Private Sub Form_Unload(Cancel As...
3
by: Dan Holmes | last post by:
I have this DllImport attribute on an external C++ dll. What i am noticing that the dll isn't unloaded after the static method is complete. I was thinking that when the method (it is a static...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.