I upgraded a project from 10.3 to 11.1 using the version utility, in my references I don't have any visible 10.3 references and all the .licx files contain references to 11.1 (I went back and deleted the contents of all 11.1); however, I get this error after deploying my application to the end user:
Could not load file or assembly 'Infragistics2.Win.UltraWinGrid.v10.3, Version=10.3.20103.2094, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
When I run the compiled version on my end, when I go to our About Box I can see that the code is still referencing the 10.3 version; even though, I upgraded the solution (and projects) to the latest release of 11.1.x.x and there are no direct references to 10.3
Hello Pete,
This sounds strange to me. Could you please open your project's bin folder and verify if there are any Infragistics assemblies from the previous version that have been used in your project? If all of the references are from NetAdvantage 11.1 version and the licenses.licx content is empty than you shouldn't get such messages.
What you could try prior runing your application is "Clearing" the solution and "Rebuilding it".
If the behavior still persist or you have any other questions I will be glad to assist you further with them.
1) bin folder and verify if there are any Infragistics assemblies from the previous version that have been used in your project? - All the assemblies are referenced from the GAC, there are no Infragistics assemblies in the bin folder.
2) "Clearing" the solution and "Rebuilding it". - does not solve the issue.
This occurs when we load a specific form; but, looking at the project file and the form's designer there is no reference to the 10.3 assembly.
When you are saying "loading a specific form" make me think that something is different in this form: Could you please let me know what is "specific" to this form? May be this form relies on some specific dll or assemblies that tries to refer NetAdvnatage 2010 vol3 for some reason? Is it possible that you have missed to refer an assembly in this specific form?
Could you please provide me wrap up this form in a small sample that I would be able to test at my end and verify why it is trying to access NetAdvantage 2010 vol3 assemblies while it has only references to NetAdvantage 11.1?
I ran into this same issue after upgrading from v13.2 to v16.2
The issue was some stored layouts in the .resx file that referenced the previous version. Removed them and it fixed this issue.
Is this something the update utility can handle?
What is odd, I even upgraded all the references from Infragistics2... to Infragistics4... this reference must be buried deep.
Using the Assembly Binding Log Viewer (Fuslogvw.exe):
*** Assembly Binder Log Entry (12/4/2011 @ 3:08:33 AM) ***The operation was successful.Bind result: hr = 0x0. The operation completed successfully.Assembly manager loaded from: C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dllRunning under executable C:\DevSource\dotNet3\Apps\Luce\trunk\src\bin\Debug\NetTraxNET.Luce.vshost.exe--- A detailed error log follows. === Pre-bind state information ===LOG: User = SERENITY\PSralLOG: DisplayName = Infragistics2.Win.UltraWinGrid.v10.3, Version=10.3.20103.2094, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb (Fully-specified)LOG: Appbase = file:///C:/DevSource/dotNet3/Apps/Luce/trunk/src/bin/Debug/LOG: Initial PrivatePath = NULLLOG: Dynamic Base = NULLLOG: Cache Base = NULLLOG: AppName = NetTraxNET.Luce.vshost.exeCalling assembly : (Unknown).===LOG: This bind starts in default load context.LOG: Using application configuration file: C:\DevSource\dotNet3\Apps\Luce\trunk\src\bin\Debug\NetTraxNET.Luce.vshost.exe.ConfigLOG: Using host configuration file: LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.LOG: Post-policy reference: Infragistics2.Win.UltraWinGrid.v10.3, Version=10.3.20103.2094, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cbLOG: Found assembly by looking in the GAC.LOG: Binding succeeds. Returns assembly from C:\Windows\assembly\GAC_MSIL\Infragistics2.Win.UltraWinGrid.v10.3\10.3.20103.2094__7dd5c3163f2cd0cb\Infragistics2.Win.UltraWinGrid.v10.3.dll.LOG: Assembly is loaded in default load context.
Upgraded to 11.2 ... ran into this issue (something is awry somewhere), will keep you posted.
Exception:
[A]Infragistics.Win.UltraWinGrid.UltraGridDisplayLayout cannot be cast to [B]Infragistics.Win.UltraWinGrid.UltraGridDisplayLayout. Type A originates from 'Infragistics2.Win.UltraWinGrid.v11.2, Version=11.2.20112.1010, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb' in the context 'Default' at location 'C:\Windows\assembly\GAC_MSIL\Infragistics2.Win.UltraWinGrid.v11.2\11.2.20112.1010__7dd5c3163f2cd0cb\Infragistics2.Win.UltraWinGrid.v11.2.dll'. Type B originates from 'Infragistics2.Win.UltraWinGrid.v11.2, Version=11.2.20112.2004, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb' in the context 'Default' at location 'C:\Windows\assembly\GAC_MSIL\Infragistics2.Win.UltraWinGrid.v11.2\11.2.20112.2004__7dd5c3163f2cd0cb\Infragistics2.Win.UltraWinGrid.v11.2.dll'.
Have you tried changing the path to the correct version? Also if you are having separate users controls, and they are using our assemblies, have you tried to rebuild them first with the newer version?
If you have any other questions through the process please feel free to let me know.
Even though the version says ...2020 and the hint path being: C:\Program Files (x86)\Infragistics\NetAdvantage 2011.1\Windows Forms\Bin\<filename> The file's version is .2042 in the path and not .2020 (I don't see that being the issue).
I have searches for anything 10.3 and was unable to find it; but, I will review again.
The licenses.licx file is empty.