473,406 Members | 2,713 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.

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 2303
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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:
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
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
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...

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.