Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 716211
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T05:16:25+00:00 2026-05-14T05:16:25+00:00

i was only able to read up that ASP.NET detects changes to specific files

  • 0

i was only able to read up that ASP.NET detects changes to specific files like aspx files, DLLs and others. It will restart itself, finish current running requests and new requests with the new deployed files.

But what is happening in the time from the first file beeing copied till the last one has been exchanged? If i exchange the first DLL file, then a request comes in but the other DLL files are in an older version – will it just crash? Will asp.net wait for some seconds and only starts itself new after X seconds of no (relevant) file changes?

Thx!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T05:16:25+00:00Added an answer on May 14, 2026 at 5:16 am

    You have 4 questions here:
    What is happening in the time from the first file beeing copied till the last one has been exchanged? – There is a set time while .net waits to see if any other files have been modified before it starts up the new app domain with the new dll’s loaded.

    If i exchange the first DLL file, then a request comes in but the other DLL files are in an older version – will it just crash? – It depends on what code changes are in the dll’s. If the new dll can run fine with old code then it will be fine. But if the app domain spins up the new DLL and that new dll is dependent on something that isn’t there yet… then yes it will throw an exception.

    Will asp.net wait for some seconds and only starts itself new after X seconds of no (relevant) file changes? – Yes. I haven’t been able to find how long that time is. But in my personal experience it’s somewhere in the 1-2 second range.

    I also found a good explanation here on app domain and re-loading of DLL’s:
    http://odetocode.com/Articles/305.aspx

    If you copy an updated dll into an
    application’s bin subdirectory, the
    ASP.NET runtime recognizes there is
    new code to execute. Since ASP.NET
    cannot swap the dll into the existing
    AppDomain , it starts a new AppDomain.
    The old application domain is “drain
    stopped”, that is, existing requests
    are allowed to finish executing, and
    once they are all finished the
    AppDomain can unload. The new
    AppDomain starts with the new code and
    begins taking all new requests.

    Typically, when a dll loads into a
    process, the process locks the dll and
    you cannot overwrite the file on disk.
    However, AppDomains have a feature
    known as Shadow Copy that allows
    assemblies to remain unlocked and
    replaceable on disk.

    The runtime initializes ASP.NET with
    Shadow Copy enabled for the bin
    directory. The AppDomain will copy any
    dll it needs from the bin directory to
    a temporary location before locking
    and loading the dll into memory.
    Shadow Copy allows us to overwrite any
    dll in the bin directory during an
    update without taking the web
    application offline.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.