473,473 Members | 1,853 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

shadowcopy can be done with private assembly ?

can shadowcopy be done with private assembly ?

any info about how shadowcopy actually works ?

when im compiling an assembly (while the assembly file is in use ), what i
need to do ?
change vertion ? change name of file ?

how the appDomain will know to load the new assembly ?
Jul 19 '05 #1
1 2305
answers inline

"Daylor" <Da****@012.net.il> wrote in message
news:3f********@news.012.net.il...
can shadowcopy be done with private assembly ?
yes, it can be.
any info about how shadowcopy actually works ?
When you create an appdomain, you can specify whether shadow copying is to
be turned on. Use the overloaded form below -

AppDomain.CreateDomain(string, Evidence, string, string, bool);

and set the last argument to true to turn on shadow copy for that appdomain.

If it is ON, when an assembly is loaded into the appdomain, a copy of the
assembly is made in a cache somewhere. The cached copy is then used, so that
you are free to modify the original assembly. The next time that that
assembly is loaded, the new copy will be picked up.
Since the original assembly was not locked, you dont have to kill the app to
replace the assembly.
when im compiling an assembly (while the assembly file is in use ), what i
need to do ?
change vertion ? change name of file ?
no, you dont need to do any of these. as long as you set the ShadowCopyFiles
property of the appdomain to true, all the assemblies loaded in the domain
are shadow copied. note that you cannot change this property once you've
already loaded assemblies into the domain. the property must be set before
the first assembly is loaded.
how the appDomain will know to load the new assembly ?


it doesn't load the new assembly automatically. only when the domain is
recycled will the new assembly be loaded.

rajasi
Jul 19 '05 #2

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

Similar topics

1
by: Bob Rock | last post by:
Hello, in the last few days I've made my first few attempts at creating mixed C++ managed-unmanaged assemblies and looking aftwerwards with ILDASM at what is visible in those assemblies from a...
1
by: Daylor | last post by:
can shadowcopy be done with private assembly ? any info about how shadowcopy actually works ? when im compiling an assembly (while the assembly file is in use ), what i need to do ? change...
10
by: Sunny | last post by:
Hi, I have an old problem which I couldn't solve so far. Now I have found a post in that group that gave me an idea, but I can not fully understand it. The problem is: I'm trying to use a...
6
by: Sathyaish | last post by:
Where is the private key to an assembly stored? The public key is stored in the manifest. All clients that reference the shared assembly, when compiled, store the public key _token_ into their...
12
by: TC | last post by:
I'm trying to figure out what the "Friend" keyword does. I know it specifies that "elements are accessible from within the same assembly", but that doesn't help because I don't know what an...
1
by: Tony Johansson | last post by:
Hello! If I select a private assembly in ILDASM I get a lot of information listed but if I select a shared assembly located at c:\window\assembly(GAC) I get nothing listed. So is this normal...
5
by: Igor | last post by:
Hi! We built VB6 application to work with Reporting Services server. To connect to reporting server has been created a special assembly with .NET VS2003. While we execute our program on local...
0
by: kanaille11 | last post by:
Hi, at the moment we have very strange problems with assembly directories: Following is the main structure of our project: - An ActiveX-control in "d:\TheProject\bin\debug" which is developed...
2
by: Jeff | last post by:
Hi I'm trying to achieve a scenario where I have c# files that are compiled dynamically, the assemblies are then loaded in a different AppDomain, I call a simple method from the object, and then...
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...
1
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,...
0
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...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...
1
muto222
php
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.