Solved

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

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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
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
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

895 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now