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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T09:13:04+00:00 2026-05-11T09:13:04+00:00

I have a scenario where I have multiple versions of the same assembly that

  • 0

I have a scenario where I have multiple versions of the same assembly that I need to store in the application private folders, in a structure like this:

.\My.dll          // latest version, say 1.1.3.0 .\v1.1.1\My.dll   // version 1.1.1.0 .\v1.1.2\My.dll   // version 1.1.2.0 

My problem is that the .Net runtime, when asked for one of the older versions, always finds the latest version and then fails due to build number mismatch before trying to probe for a better match.

The assemblies are strong named and I’m using this configuration in my app.config:

<runtime>     <assemblyBinding xmlns='urn:schemas-microsoft-com:asm.v1'>         <dependentAssembly>             <assemblyIdentity name='My'                  publicKeyToken='xxxxxxxx' culture='netural' />                  <bindingRedirect oldVersion='1.0.0.0-1.1.1.0'                      newVersion='1.1.1.0' />                 <bindingRedirect oldVersion='1.1.3.0-1.1.65535.65535'                      newVersion='1.1.3.0' />                  <codeBase version='1.1.1.0' href='v1.1.1\My.dll' />                 <codeBase version='1.1.2.0' href='v1.1.2\My.dll' />         </dependentAssembly>     </assemblyBinding> </runtime> 

Hopefully there is something I have missed here. I know this can be solved in code by listening for the AppDomain.AssemblyResolve event but I would love to see a pure config solution.

Update: So I found the bug, which is as Kent assumed, a typo. culture='netural' should be culture='neutral'. That said, without the typo, resolving works great when using codeBase elements that point to each version. The probing element does not seem to work in this scenario.

  • 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. 2026-05-11T09:13:05+00:00Added an answer on May 11, 2026 at 9:13 am

    Without seeing the entire solution, I can only assume you have a typo somewhere. I just tried this for myself and – with the help of fuslogvw, I was able to get it working.

    I have three versions of the assembly and the consuming application references an older version than that in its output directory. The CLR finds the redirects and codeBase entry and loads the correct (older) version.

    I can email you my solution if you provide an email address.

    Kent

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

Sidebar

Related Questions

I have a scenario where there are multiple dbs that have the same schema
Imagine the scenario you have a listing page that is a concatenation of multiple
I have to build an application using Maven for PHP that has multiple modules.
I have multiple versions of xcdatamodel files: app1.0.xcdatamodel app1.1.xcdatamodel app1.2.xcdatamodel (current) Does this mean
We have a scenario where multiple devices are connected to one com port. Each
The Scenario: We have multiple nodes distributed geographically on which we want to have
I have a scenario where I have to update multiple rows in a table
I have a scenario in which I have to run multiple commands one after
I am having a scenario, in which i have multiple delegates attached to the
Here's a scenario... I have a column. In the column i have multiple divs

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.