Solved

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

Posted on 2015-01-28
3
152 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
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 33

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

How our DevOps Teams Maximize Uptime

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us. Read the use case whitepaper.

Question has a verified solution.

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

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

821 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