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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T17:52:22+00:00 2026-05-25T17:52:22+00:00

Today I was getting some assembly mismatch issue and after a bit of digging

  • 0

Today I was getting some assembly mismatch issue and after a bit of digging I found that for a particular DLL, actual reference in project was made to some other version and
config file for that project was showing dependency to some other version of the same DLL.

Exp.

<dependentAssembly>
    <assemblyIdentity name="NHibernate" publicKeyToken="aa95f207798dfdb4" />
    <bindingRedirect oldVersion="2.0.1.4000" newVersion="2.1.2.4000" />
</dependentAssembly>

I removed the dependency declaration for that assembly from the config file and voila! I was able to run again 🙂

My question is –

When are <dependentAssembly> declarations made in the project config file? Do we add them manually? And in what 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. Editorial Team
    Editorial Team
    2026-05-25T17:52:22+00:00Added an answer on May 25, 2026 at 5:52 pm

    When are <dependentAssembly> declarations made in the project config
    file? Do we add them manually? And in what scenario?

    When you want to ensure the software binds to a newer version of an assembly at runtime than that which it was built against.

    More info: http://msdn.microsoft.com/en-us/library/7wd6ex19.aspx

    Can you please also guide in what scenario we need older version at
    compile time and newer version at run-time?

    For example, if you are using a vendor API, the vendor may have identified a bug and needs to issue a new version but you’ve already shipped.

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

Sidebar

Related Questions

First deployment to AppHarbor today. After some initial work getting it to build, I
Today I was tracking down why my program was getting some unexpected checksum-mismatch errors,
I ran into some code today that I found questionable. Here's a simplified example
I've spent some time today playing with getting the source for python 3.1.1 to
So today's problem is getting me mad because that should be easy and i
How stable is the Django trunk? I am getting this issue today from updating
I'm just getting my head around insert statements today after getting sick of cheating
Hi I have been working on this code today after attempting some of the
I'm getting my head around Modernizr polyfill loading today and running into some trouble.
I've been getting stuck into some linq queries for the first time today and

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.