Professional Web Applications Themes

Shadow copying - ASP.NET General

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, ...

  1. #1

    Default Shadow copying

    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 p, generate class, etc....


    Alex Guest

  2. #2

    Default Re: Shadow copying

    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.agranovverizon.net> wrote in message
    news:#WXBCgdXDHA.1940TK2MSFTNGP10.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 p, generate class,
    etc....
    >
    >

    alien2_51 Guest

  3. #3

    Default Re: Shadow copying

    On [GMT+0100=CET],
    alien2_51 <dan.billown.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.


    Alex Guest

Similar Threads

  1. REALLY NEED HELP WITH THIS! OUTLINE OVER SHADOW???
    By noxer@adobeforums.com in forum Adobe Illustrator Windows
    Replies: 4
    Last Post: April 28th, 08:57 PM
  2. Problem: Drop shadow creates a "flat shadow"
    By zig_zag@adobeforums.com in forum Adobe Illustrator Windows
    Replies: 3
    Last Post: April 13th, 01:31 AM
  3. Drop shadow and......
    By Raven in forum Macromedia Flash Sitedesign
    Replies: 0
    Last Post: September 17th, 09:26 AM
  4. how do i only keep the shadow
    By im_a_beginner in forum Adobe Photoshop 7, CS, CS2 & CS3
    Replies: 8
    Last Post: August 1st, 03:26 PM
  5. task shadow
    By R. C. White in forum Windows XP/2000/ME
    Replies: 0
    Last Post: June 30th, 04:07 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139