473,406 Members | 2,371 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,406 software developers and data experts.

Is it safe to replace dll's in bin while running transactions ?

PL

Is it safe to replace dll's in bin while there are running transactions or
is it considered bad practice to replace dll's in the /bin folder while the
server is running ?

I never really thought about it until now but recently we experienced
strange entries in our database that we have no explanation for, it almost
looks like some database transactions weren't aborted properly.

Is it better practice to shutdown the database and webservices before
replacing dll's in teh bin directory ?

I would appreciate any input on this as we update things frequently and
shutting down services would be a problem for us.

PL.
Mar 29 '06 #1
2 1435
In theory, you shouldn't have any problems.

All existing calls to methods in your current dlls should be
handled from memory, in the current thread(s).

All new calls to the dll which replaces your current dll will run in new thread(s).

In practice, though, it's far safer to do as you say :
shutdown the database and webservices before replacing dll's in the bin directory
I usually like to err on the side of caution.

:-)

Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"PL" <pb****@yahoo.se> wrote in message news:OP*************@TK2MSFTNGP10.phx.gbl...
Is it safe to replace dll's in bin while there are running transactions or is it considered bad
practice to replace dll's in the /bin folder while the server is running ?

I never really thought about it until now but recently we experienced strange entries in our
database that we have no explanation for, it almost looks like some database transactions weren't
aborted properly.

Is it better practice to shutdown the database and webservices before replacing dll's in teh bin
directory ?

I would appreciate any input on this as we update things frequently and shutting down services
would be a problem for us.

PL.

Mar 29 '06 #2
PL

Thank you for your input on this, I appreciate it.

PL.
"Juan T. Llibre" <no***********@nowhere.com> skrev i meddelandet
news:%2****************@tk2msftngp13.phx.gbl...
In theory, you shouldn't have any problems.

All existing calls to methods in your current dlls should be
handled from memory, in the current thread(s).

All new calls to the dll which replaces your current dll will run in new
thread(s).

In practice, though, it's far safer to do as you say :
shutdown the database and webservices before replacing dll's in the bin
directory


I usually like to err on the side of caution.

:-)

Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"PL" <pb****@yahoo.se> wrote in message
news:OP*************@TK2MSFTNGP10.phx.gbl...

Is it safe to replace dll's in bin while there are running transactions
or is it considered bad practice to replace dll's in the /bin folder
while the server is running ?

I never really thought about it until now but recently we experienced
strange entries in our database that we have no explanation for, it
almost looks like some database transactions weren't aborted properly.

Is it better practice to shutdown the database and webservices before
replacing dll's in teh bin directory ?

I would appreciate any input on this as we update things frequently and
shutting down services would be a problem for us.

PL.


Mar 29 '06 #3

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

Similar topics

11
by: Larry Woods | last post by:
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,...
9
by: Jody Gelowitz | last post by:
I am trying to find the definition of "Safe Printing" and cannot find out exactly what this entitles. The reason is that I am trying to print contents from a single textbox to no avail using the...
7
by: Viviana Vc | last post by:
Hi all, I have 2 questions: 1) As I know there is no way on Windows to replace a running exe, but somebody told me that this is doable, and I couldn't find any info on how could this be done...
3
by: mal_lori | last post by:
Hello, I have an ongoing problem with a single machine not recognizing the REPLACE function. This is a WinXP Pro machine, running Office 2000 (SP3) with MDAC 2.8 (SR1) and Jet 4 installed. ...
10
by: g | last post by:
hello! I wanna replace an std::map<std::string,Services*> with hash_map.How I will do this? any link with examples? transactions.insert(std::pair<std::string,Services*>("Aservice",new...
5
by: DaveP | last post by:
How can i dynamically load a Dll and unload said Dll using c# i have a Situation where i have many dlls that are client based and only need to be loaded and code executed based on client ID. ...
6
by: simon.robin.jackson | last post by:
Ok. I need to develop a macro/vba code to do the following. There are at least 300 corrections and its expected for this to happen a lot more in the future. Therefore id like a nice...
3
by: =?Utf-8?B?anBhdHJjaWs=?= | last post by:
Don't see any official notice that compiled library dll's loaded in the BIN directory of an asp.net website need to be thread safe, but concurrent visits to the same web site sure bear this out....
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: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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,...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...
0
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,...

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.