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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T08:13:14+00:00 2026-06-03T08:13:14+00:00

I have a Windows, C++ software project (built with Visual Studio 2005, SP1) that

  • 0

I have a Windows, C++ software project (built with Visual Studio 2005, SP1) that has the following (simplified) file layout:

{App. Root Directory}
|-- bin
|   |-- Microsoft.VC80.CRT
|   +-- Microsoft.VC80.MFC
+-- utils

There are various executables that live in both the bin and utils directories. Each of these executables rely on the side-by-side assembly (C++ run-time DLLs) that we store in bin, but we have segregated them into these separate folders for various reasons (e.g., the exes in the utils folder are supplemental tools to our primary application, and are run infrequently). As a direct result of this file organization, the apps in the utils folder fail to run on systems that don’t already have the appropriate side-by-side assembly installed (they fail with the usual “The system cannot execute the specified program” error message).

My Question: Is there a way I can tell the apps in the utils folder to explicitly look in the ..\bin folder for the appropriate side-by-side assembly? The Assembly Searching Sequence article at Microsoft makes no mention of this being possible or not. Is there a clever way I can fix this run-time requirement for these applications?

Potential Options I See:

  1. Place a copy of the side-by-side assembly into the utils folder. This could be done at run-time (to prevent bloating our application installation package), but seems a little dirty.
  2. Statically link the run-time DLL’s. I don’t want to do this!
  3. Have the end user install the usual redistributable package. I’d rather not do this either.
  • 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-06-03T08:13:15+00:00Added an answer on June 3, 2026 at 8:13 am

    My first response is, what actual benefit is derived from separating the utilities from the .\bin folder? Having OCD tendencies myself, I understand the sense of neatness but it seems a bit pointless to continue a practice once it so tangibly can be seen to negatively effect your ability to deploy your application.

    That said, it is actually technically possible. To do this you make use of the probing privatePath element in your app.config file.
    Application config files work similarly to application manifests, except that they cannot be embedded as resources: Create a file, in the same folder as the exe, with the exe’s full name (including exe extension) and append .config.

    <!-- acme.exe.config -->
    <configuration>   
      <windows>
        <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
          <probing privatePath="bin;..\bin" />
        </assemblyBinding>
      </windows>
    </configuration>
    

    There are a number of caveats that make this solution potentially unworkable – any dll’s that specify their own dependent assemblies need to have an application config file with a probing privatePath element.
    Also support for the probing node was only added in Windows NT 6.0 (Vista) so this solution is inappropriate if you still need to target XP.

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

Sidebar

Related Questions

I have created a Windows setup file for my Windows project in Visual Studio
I have Visual Studio 2008. Do I develop software for Windows phone 7 with
I have a Problem. I'm involved in a Windows CE Software Project that runs
I have a windows installer project which installs some software (winform, service, mce addin).
We have software that runs fine under a normal Windows installation but when we
Here is what I have: Visual Studio 2008 (on 32-bit Windows XP) Qt libraries
I have issues setting up my deployment project in Visual Studio 2010. Im using
I have a Visual Studio 2008 C# Project. Here is what works: It runs
We have Windows Server 2008 as our Production server hosted in RackSpace environment. Following
I have a windows forms client that consumes an ASP.net web service. It's my

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.