Is this correct:
1. When the first request for an application on the virtual directory comes
in and ASP.NET worker process creates an AppDomain for that particular
application, it copies the code-behind(if there is one) to the
v1.1.4322\Temporary ASP.NET Files\(appname)\....
2. For the lifetime of this application the code-behind in the shadow folder
is locked.
3. If I do xcopy update on the code-behind in the \bin folder, when the next
request comes in, the AppDomain will compare the dates of the \bin
code-behind and shadow-folder code-behind, and if \bin is newer, it will
unload the reference to shadow code-behind, copy the new code-behind DLL to
shadow foldre, reference it, and proceed with parse, generate class, etc.... 2 1898
I'm not sure it would do a comparison of dates between files, that would
seem to slow... Although there is a piece of the framework that would do
this nicely and I would be willing to bet this is how aspnet monitors
changes in appDomains....FileSystemWatcher very cool indeed..... I think
this is also how the framework detects changes in the .config files....
"Alex" <a.*******@verizon.net> wrote in message
news:#W**************@TK2MSFTNGP10.phx.gbl... Is this correct:
1. When the first request for an application on the virtual directory
comes in and ASP.NET worker process creates an AppDomain for that particular application, it copies the code-behind(if there is one) to the v1.1.4322\Temporary ASP.NET Files\(appname)\....
2. For the lifetime of this application the code-behind in the shadow
folder is locked.
3. If I do xcopy update on the code-behind in the \bin folder, when the
next request comes in, the AppDomain will compare the dates of the \bin code-behind and shadow-folder code-behind, and if \bin is newer, it will unload the reference to shadow code-behind, copy the new code-behind DLL
to shadow foldre, reference it, and proceed with parse, generate class,
etc....
On [GMT+0100=CET],
alien2_51 <da********@n.o.s.p.a.m.monacocoach.com> thought hard and spewed: I'm not sure it would do a comparison of dates between files, that would seem to slow... Although there is a piece of the framework that would do this nicely and I would be willing to bet this is how aspnet monitors changes in appDomains....FileSystemWatcher very cool indeed..... I think this is also how the framework detects changes in the .config files....
You are correct, FileSystemWatcher would be most efficient implementation
rather then checking every time timestamps between 2 different files on
every request. This way any shadow-copying check only happens when the xcopy
is performed. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Bill Rust |
last post by:
I have a component that needs to access files which exist in the same
directory as the DLL containing the component itself. To determine the
component's installation directory, I'm using...
|
by: Mr 071 |
last post by:
I am trying to use shadow copying provided by the framework, but I am not
able to get it to work. More specifically, after a new app domain is created
and the assembly loaded in it, it is still not...
|
by: surya |
last post by:
Hi,
I need to enable shadow copying network share folder assemblies. Currently
if the path is given as the network share folder path, shadow copying is not
enabled. Should something special be...
|
by: Barry Kelly |
last post by:
I'm designing an application framework which will, amongst other things,
live in an assembly hosted in the ASP.NET worker process, servicing
webservice requests.
Here's the scenario:
APPFX is...
|
by: Damien Anselmi |
last post by:
I am using the CompileAssemblyFromSource method of an ICodeCompiler instance
to dynamically compile an assembly used by a Web Application. The assembly
may be recompiled any number of times during...
|
by: Oenone |
last post by:
I have an application which loads plugin DLLs from various directories on
the local disk. To avoid problems with the DLLs being locked by IIS, I have
modified my code so that it copies the DLLs to...
|
by: Michael Nemtsev |
last post by:
Use Win2003 Server and VS 2003.
When I'm trying to debug COM+ lib, I've stumble over ShadowCopying feature,
when my dll being copied in temporary folder, and I can't step in my dll. No
breakpoits...
|
by: mark_overstreet |
last post by:
I have a generic data layer DLL that expects to read its connection
string from it's own config file. The dll and config file have been
placed in the bin directory (VS.NET2005). However, due to...
|
by: CMM |
last post by:
I've been scouring the net for the last few days looking for a way to copy a
locked file (create a shadow volume, expose it... that's it) from within my
program. I'm aware of the kludgy vshadow.exe...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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...
|
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,...
|
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,...
|
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...
|
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,...
| |