Solved

vs2013 Could not load file or assembly ... Version= ...

Posted on 2015-01-28
3
158 Views
Last Modified: 2015-01-28
I am working on an application written by a third party that uses a .dll I have produced myself.

When I try to use a new version of my .dll I get the message above when trying to open the GUI. The problem is that it is looking for a particular version of my .dll.

Strangely enough  I can build and run the application.

I need to be able to open the GUI so as to put some code on some events (onCheck on a Treeview etc.)

Can anyone tell me how I can ensure the application can use different versions of my .dll or at least tell me where the reference to the version is?
0
Comment
Question by:jetbet
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 75

Accepted Solution

by:
käµfm³d   👽 earned 500 total points
ID: 40576296
It's usually compiled into the assembly's manifest, which you typically wouldn't modify (if that's even possible) once compiled. You might try using a binding redirect to force the 3rd-party library to try and use your updated version. This is kind of hackish, though. It may not work for signed assemblies...I've never tried. And if your API has changed, then it would certainly break. Nevertheless, take a look at the following if you'd like to try it:

https://msdn.microsoft.com/en-us/library/433ysdt1%28v=vs.110%29.aspx

I would guess that the best practice would be to recompile the dependent application.
0
 
LVL 34

Expert Comment

by:it_saige
ID: 40576351
Along the lines of what Kaufmed is describing, I provided an example for another EE PAQ that goes over this process.

http://www.experts-exchange.com/Programming/Languages/C_Sharp/Q_28580184.html

-saige-
0
 

Author Closing Comment

by:jetbet
ID: 40576505
Thanks for your advice
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

617 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question