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

The Archive Base Latest Questions

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

I am developing a Windows CE App using Visual Studio 2008 and the Compact

  • 0

I am developing a Windows CE App using Visual Studio 2008 and the Compact Framework 3.5.

Now I want to place the required dlls in a subfolder to the main exe file. Is that possible?
This solution does not work for Windows CE.

Edit:

I want the dependencies to live in a subfolder on the client device.

Currently my folder structure looks like this (everything in a single directory)

-- folder\
------ main.exe
------ controls.dll
------ webservice.dll
------ businesslogig.dll
------ nlog.dll

what I want:

-- folder\
------ main.exe
------ lib\
--------- controls.dll
--------- webservice.dll
--------- businesslogic.dll
--------- nlog.dll

this is possible on the desktop with a setting in the app.config file:

  <runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <probing privatePath="lib" />
    </assemblyBinding>
  </runtime>
  • 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-28T17:42:56+00:00Added an answer on May 28, 2026 at 5:42 pm

    The compact framework doesn’t support setting the probing path in the app.config file. There are a couple things you could try as a workaround though.

    My first guess would be to add the subfolder to the system loader’s search path, though I don’t know that I’ve ever actually tried it for managed assembliess. To extend the loader path, simply add your path as another string in the MULTI_SZ registry key at [HKLM\Loader\SystemPath]. I’m also not certain if this requires a soft reset to get the OS to pick up the change. Broadcasting a WM_SETTINGSCHANGE might also be worth a try.

    The second option for managed assemblies is to manually load the assembly when you come up – before you use any classes from the target. Call Assembly.LoadFrom to load it up and at that point the CLR will be able to load it.

    The second option for native DLLs is to call a P/Invoke on the DLL with a full path to the target. Once loaded by the first P/Invoke, any further calls to the dll name (even without a path) will properly resolve as it will just use the internal handle retrieved by LoadLibrary.

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

Sidebar

Related Questions

I'm developing a WinForm app for Windows Mobile 6.0 with C#, .NET Compact Framework
I'm developing a Windows Mobile app ( Compact Framework 2.0 SP1 ) and this
I am developing a forms app (not web) for Windows Mobile, using .NET CF
I'm using Windows Vista x64 with SP1, and I'm developing an ASP.NET app with
I'm developing a Windows Phone app. I'm using an image and when I select
I'm developing a Windows Phone 7 (WP7) app and I'm using a LongListSelector control
We're developing a .NET 3.5 Windows Forms app, using LINQ to SQL and MVP.
I am developing an Android app on windows, using eclipse. I would like to
I am developing an app using Windows Phone 7. I have used MVVM for
I'm developing a Cocoa app using XCode 4. One of the windows has a

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.