Click here to Skip to main content
15,879,535 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,
my environment is :
- Windows 7, VS 2010 SP1, FW .NET 4.0.

The issue is :
- I have a DLL .NET (dll1.dll version 1.0.0.0 without StrongName) who contains a simple class that does anythis ;
- I have a second DLL .NET (dll2.dll version 1.0.0.0 without StrongName) who contains a WinForms UserControl, with one simple Button control ; dll1 is also referenced, with SpecificVersion property set to false ;
- I have a WinForms application, who contains just one Form. dll1 and dll2 are referenced with SpecificVersion property set to false, and in the VS IDE, I add the UserControl in the ToolBox, then I drag and drop one instance of UserControl on the Form ;

At this point, application compilation (x86) and runtime are OK.

Then :
- I modify a little bit code in dll1, I modify the version of dll1 from 1.0.0.0 to 1.1.0.0, and I recompile dll1 ;
- BUT I DON'T WANT to recompile dll2 because his code has no changes ;
- In the WinForms application, reference to dll1 is upgraded to 1.1.0.0, and reference to dll2 is still to 1.0.0.0.

Results :
- compilation is still OK ;
- runtime is still OK, because there is no StrongName ;
- BUT when I try to display the Form in the IDE, VS throws a FileNotFoundException because it cannot found "dll1 version 1.0.0.0".

I don't understand why, at design time, VS throws this exception that is not thrown at runtime.

I hope that my explanations are clear and detailed enough.

Thank you for your help
Chris

What I have tried:

With VisualStudio 2013, same issue.
Posted
Updated 28-Feb-18 22:03pm

It is likely the VS editor has embedded the version of the dll somewhere.
Try deleting the control from the form and from the toolbox, and add it again; that should get rid of the error.
 
Share this answer
 
Hello,
I have trid that but I get the same error.
This is the link between dll2 and dll1 that causes the exception, and not the link between application and dll2.

Chris
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900