Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2015-01-28
3
Medium Priority
?
160 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 2000 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 35

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

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

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

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
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
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Suggested Courses

916 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