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 653905
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T22:26:05+00:00 2026-05-13T22:26:05+00:00

I have a vb.net 3.5 application which references a dll (abc.dll, also in .net

  • 0

I have a vb.net 3.5 application which references a dll (abc.dll, also in .net 3.5)
This dll is accessed by the application from time to time. If at anytime during execution, if I delete the dll, I expect the application to throw an error the next time it tries to use a class from the dll. But, this is not the behaviour I see. If I delete the dll before startup, the application throws an error at startup. But not when the dll is deleted after startup.

Is this the standard behaviour, or am I doing something wrong?
Can I get the app to throw an error if the dll is not found when it tries to use its classes?

Thanks in advance.

  • 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-13T22:26:06+00:00Added an answer on May 13, 2026 at 10:26 pm

    The short answer no. Once a DLL is loaded it is loaded until app AppDomain instances using that DLL are unloaded from the process. Only then can you delete the original DLL.

    Longer answer:

    This is a complicated question because it depends on how the DLL is being loaded into the process. There are a couple of different ways this can occur

    • Direct loading off of disk. This one I know the least about but in this case the CLR could be taking a file lock on the assembly and hence it should be able to be deleted at all
    • Loading from a shadow directory. In this case the DLL is actually loaded from a different directory on disk to allow for operations such as deleting the original DLL. This is popular in web app scenarios. In this case deleting the original DLL is meaningless as the important DLL is loaded from a temp directory of sort.s
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a .NET project which references a DLL called ABCPDF. The version number
I have a ASP.NET web application in which I have references to a couple
I have an .Net MVC application which runs fine if I use the build
I have an ASP.Net application which as desired feature, users would like to be
I have a .net client application which is connected to a remote database. Is
I have an ASP.NET MVC-application which I want deployable on both IIS6 and IIS7
We have a .NET 2.0 application which we normally run on IIS6, and used
I have a asp.net web application which has a number of versions deployed on
I have an ASP.NET web application which does the following: Reads an Excel file.
HI All, We have a .Net 2.0 application which has a MySQL backend. We

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.