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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T00:46:54+00:00 2026-05-28T00:46:54+00:00

I have an app (app1) that loads another app (app2) like this: this._appDomain.ExecuteAssembly(assemblyName); I’m

  • 0

I have an app (app1) that loads another app (app2) like this:

this._appDomain.ExecuteAssembly(assemblyName);

I’m getting this error when that line executes:

Could not load file or assembly Foo…

App2 has a reference to Foo. If I add a reference to Foo in app1, it works. The problem is that I don’t want app1 to reference Foo. App1’s main purpose is to detect new versions of app2 on a network share, unload app2, copy the new binaries, then start app2 again using the line above. After doing that, if app1 has the old Foo in there, then app2 will use that instead of Foo in its own running directory.

How can I make it so that only app2 refereces Foo, yet app1 will still load app2 without that error?

Note: I am using shadow copying, and it is working when app1 has a reference to Foo.

appDomainSetup.ShadowCopyFiles   = "true";
  • 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-28T00:46:55+00:00Added an answer on May 28, 2026 at 12:46 am

    See AppDomainSetup.ApplicationBase . You can specify the base application directory for your app domain via this property. The ApplicationBase is essentially the starting point for assembly probing. In addition, you can specify additional private bin paths using the the AppDomainSetup.PrivateBinPath. This allows the probing to search additional directories. There are code examples in the MSDN pages.

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

Sidebar

Related Questions

I have a C# console app App1 that reads a row of data from
I have a web app in http://domain1/app1/called.html , and I want to embed that
In my Django project, I have static folders for each app, app1/static/, app2/static, etc.
I have a medium sized WinForm App ( 1 Form that hosts 40 user
I have an Android project that branched into three different applications, app-1 , app-2
have an app that finds your GPS location successfully, but I need to be
Have an app that has listings - think classified ads - and each listing
I have an app that needs to open a new window (in the same
I have a java application that will run on Windows 7 (using Swing, App
I am making an app that will have images. When the user hits the

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.