473,719 Members | 2,091 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 14464
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 "applicatio n pool". IOW, will
this stop OTHER applications running on the server?

TIA,

Larry Woods

"Bob Barrows [MVP]" <re******@NOyah oo.SPAMcom> wrote in message
news:%2******** ********@tk2msf tngp13.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***@NOSPAMlw oods.com> wrote in message
news:%2******** ********@tk2msf tngp13.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 "applicatio n
pool". IOW, will this stop OTHER applications running on the server?

TIA,

Larry Woods

"Bob Barrows [MVP]" <re******@NOyah oo.SPAMcom> wrote in message
news:%2******** ********@tk2msf tngp13.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 "applicatio n
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 "applicatio n
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

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

Similar topics

4
6108
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 this assembly has references to one dll, currently not performing any work. I tried this: 1. Setting the assembly to null, 2. Implementing a ClassFactory and returning an interface of the object,
1
11975
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 the methods. Now, when I'm trying to optimize the code, I noticed that the assemblies that are loaded during the reflection call, are never
6
8198
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 this 5 line program: AppDomain domain = AppDomain.CreateDomain("MyDomain"); domain.CreateInstance("TempDLL", "TempDLL.Class1"); MessageBox.Show("try deleting file now"); //cant delete file AppDomain.Unload(domain);
2
6873
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 without interfaces if need be. But try as I may they will ot unload. I have been working on this problem for weeks. I have seen other apps using Remoting but I know there has got to be a way to create a child AppDomain and reference obkect via...
1
2652
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 of my page in javascript. However, if I turn on smart navigation, any button that does a server.transfer fails to fire the javascript unload event.
1
2929
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 the unload event (client side not server side) of the <body> HTML element through javascript.
3
3211
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 the user perform operation on this page (postback navigation based). I also need to clean up the session data when the user leave the page (by a anyway). My question is about the Unload event, is it safe to use the unload
2
5765
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 Integer) Select Case MsgBox("Are you sure you want to exit?", vbYesNo) Case Is = vbYes Exit Sub Case Is = vbNo Cancel = True
3
8579
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 method) completed then the dll would be unloaded. Is there a way i can force this to unload or will i have to use loadlibrary? danny
0
8726
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9210
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9054
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7997
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6661
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5972
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4746
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3186
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2565
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.