---
title: "What is Shadow Copy?"  
description: "What is Shadow Copy?"  
author: "Rajesh Goswami"  
published: 2010-11-16  
updated: 2020-09-20  
canonical: https://www.mindstick.com/interview/238/what-is-shadow-copy  
category: "asp.net"  
tags: ["asp.net"]  
reading_time: 2 minutes  

---

# What is Shadow Copy?

In order to replace a COM component on a live dedicated server, it was necessary to stop the entire website, copy the new files and then restart the website. This is not feasible for the web servers that need to be always running. .NET components are different. They can be overwritten at any time using a mechanism called Shadow Copy. It prevents the Portable Executable (PE) files like DLLs and EXEs from being locked. Whenever new versions of the PEs are released, they are automatically detected by the CLR and the changed components will be automatically loaded. They will be used to process all new requests not currently executing, while the older version still runs the currently executing requests. By bleeding out the older version, the update is completed.

## Answers

### Answer by Rajesh Goswami

In order to replace a COM component on a live dedicated server, it was necessary to stop the entire website, copy the new files and then restart the website. This is not feasible for the web servers that need to be always running. .NET components are different. They can be overwritten at any time using a mechanism called Shadow Copy. It prevents the Portable Executable (PE) files like DLLs and EXEs from being locked. Whenever new versions of the PEs are released, they are automatically detected by the CLR and the changed components will be automatically loaded. They will be used to process all new requests not currently executing, while the older version still runs the currently executing requests. By bleeding out the older version, the update is completed.


---

Original Source: https://www.mindstick.com/interview/238/what-is-shadow-copy

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
