I have just updated my Windows Forms Solution to the latest Service Release Infragistics4.Win.xxx.v14.2, Version=14.2.20142.2092.The whole solution does compile successful and it also runs normal.
A problem occurs if I start the “Visual studio 2013 Update 4” designer for one particular form.It shows me the error:Could not load file or assembly "Infragistics4.Win.UltraWinToolbars.v14.1, Version=14.1.20141.2059, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" or one of its dependencies. The system cannot find the file specified.
The version Infragistics4.Win.xxx.v14.1 is on my machine completely uninstalled and so there is no Infragistics4.Win.UltraWinToolbars.v14.1.dll.The form does include a project which is written in C++/cli. If I try to update only this project directly with the context menu command “Upgrade Infragistics Version 14.2” an error occurs and the logfile shows:
08:47:07: Running VS2012/VS2013 Add-in UI Version 14.2.20142.1000 08:47:07: Gathering volume and assembly information. 08:47:07: Could not locate registry entry Software\Microsoft\.NETCore\v4.5\AssemblyFoldersEx where we look for installed products.
I have checked in this project the references for all Infragistics4.Win.xxx.v14.2 and removed them manually and insert them again.
If I run “Upgrade Infragistics Version 14.2” over the context menu for the complete solution no error occurs, but after then the designer still can not load the form and shows the above written error.
In the main menu of Visual studio 2013 under Infragistics there is still a sub item “Platform Installer 2014.1”, despite I have uninstalled it over the control panel. This might be an indicator that the uninstallation of “Infragistics4.Win.xxx.v14.1” did not finish in the past completely.
Has anyone an idea how this can be fixed?
Best regardsFrank
Hello Frank,
Could you please verify in that particular project, where the form shows the mentioned error, what version of the Infragistics Assemblies are referred exactly? Also can you please remove the Infragistics entries from the Licences.licx file, close the designer of that form and reopen it one more time.
The following message written in the log file - "Could not locate registry entry Software\Microsoft\.NETCore\v4.5\AssemblyFoldersEx where we look for installed products." is not an actual error and indicates that on the machine on which you are trying to upgrade your website, you don't have our WindowsUI product installed. This information is helpful for us, when we investigate actual issues, and the upgrade process should be completed correctly, regardless of that message in the log file.
Please let us know if that helps.
Thanks.
Dear Danko,
The license file (licenses.licx) for this particular project is empty.
I checked the references again and they do match to Infragistics4.Win.xxx.v14.2 Version=14.2.20142.2092.
I did run again the solution “Upgrade Infragistics Version 14.2” and checked the logfile:
08:52:17: F:\Projects\XXXX\CustomImageBox\CustomImageBox.vcxproj has been backed up.08:52:17: Updating Infragistics4.Win.v14.2 Version=14.2.20142.2092 to new reference Infragistics4.Win.v14.2. Version 14.2.20142.209208:52:17: Updating Infragistics4.Win.UltraWinToolbars.v14.2 Version=14.2.20142.2092 to new reference Infragistics4.Win.UltraWinToolbars.v14.2. Version 14.2.20142.209208:52:17: Updating Infragistics4.Win.Misc.v14.2 Version=14.2.20142.2092 to new reference Infragistics4.Win.Misc.v14.2. Version 14.2.20142.2092 08:52:17: Updating Infragistics4.Shared.v14.2 Version=14.2.20142.2092 to new reference Infragistics4.Shared.v14.2. Version 14.2.20142.2092 08:52:17: F:\Projects\XXXX\CustomImageBox\licenses.licx has been backed up. 08:52:17: Done Updating CustomImageBox.vcxproj.
For me this log is looking good.
The “Visual studio 2013 Update 4” designer does read out from some were Infragistics4.Win.UltraWinToolbars.v14.1, Version=14.1.20141.2059 and this is old.
Thank you.
regards Frank
Interesting. It seems that your Visual Studio C++ project, under "Visual Studio 2013 Update 4" is trying to resolve different version of the controls. Have you tried, clean and rebuilding that exact project under the mentioned Visual Studio? When you do that, could you please make sure that the designer is closed? What is the content of the Bin Folder of that project?
If the mentioned behavior still exists, could we get a copy of that project and give it a try on our end?
Thank you for your cooperation.
Hello Danko,
I have cleared and rebuild the project 2 times but that does not help. If I load the whole project with Visual Studio 2010 SP1Rel, I do get the same message:
Could not load file or assembly "Infragistics4.Win.UltraWinToolbars.v14.1, Version=14.1.20141.2059, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" or one of its dependencies. The system cannot find the file specified.
Next I have created a dummy project and tried instantiating the C++ “CustomImageBox”, which is a user control, and I got this message while dragging it on the form. So It looks like that somewere is still "Infragistics4.Win.UltraWinToolbars.v14.1, Version=14.1.20141.2059" stored.
Thank you very much!
regardsFrank
If I run the “Upgrade Infragistics Version 14.2” on the “CustomImageBox” I can see an empty message box.
I am glad that your issue is solved now.
Thank you for using Infragistics controls.
The “CustomImageBox” does include other DLLs and I did scan the whole computer for any duplicates of them.
I found two old duplicates under the directories: C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDEwhich belongs to Visual Studio 2010 and exactly the same old duplicate under the directory C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDEwhich belongs to Visual Studio 2013.
That both old duplicates were built on 30 08 2014 and they had a reference to „Infragistics4.Win.UltraWinToolbars.v14.1, Version=14.1.20141.2059”.So both Visual Studio Versions did take an old DLL version in their designer modes. I’m convinced that Visual Studio did make these copies accidentally himself.Sometimes I use Visual Studio 2010 because “edit and continue” in native mode, does not run properly under Visual Studio 2013 Update 4.
After removing the old DLLs from these directories and several rebuilds, both Visual Studio Versions can now load the user control correctly. I have also uninstalled „Infragistics4.Win.xx, Version=14.1” and don’t get an error message anymore.
This was deep scrutinizing but now the weekend is saved.Thank you very much indeed for your worthful help.
You are welcome.
Could you please try one last thing here. You are saying that when you drag the control from the toolbox to the design surface, than the designer throws that message. Could you please remove that control from your toolbox, rebuild your application, and add the newly created "CustomImageBox" in the toolbox. After that try to move exact this control to the design surface. I believe that your Visual Stuido toolbox might be keeping reference to your old "CustomImageBox" control which is being created with 14.1, and that's why your are seeing such behavior.
Thanks for your collaboration.
The “CustomImageBox” is part of the solution and the references are updated to Infragistics4.Win.xxx.v14.2, Version=14.2.20142.2092.
I have tested the application in a virtual machine where only Infragistics4.Win.xxx.v14.2, Version=14.2.20142.2092 DLLs are installed and there it runs normal. So at runtime no component „Infragistics4.Win.UltraWinToolbars.v14.1, Version=14.1.20141.2059” is required.
Only the “Visual studio 2013 and also the “Visual studio 2010 designer does search for „Infragistics4.Win.UltraWinToolbars.v14.1, Version=14.1.20141.2059”.
I have reinstalled „Infragistics4.Win.xxxx.v14.1, Version=14.1.20141.2059” on my developer machine and the designer doesn’t anymore show the error message, because now the component is available with exactly this “Version=14.1.20141.2059”.
For the moment, let us say this “bronze medal solution” is enough and I am able to continue my work. I will try to find out more in future.
Thank you so much for your help!
Thank you for providing me with the screenshots.
The behavior that you are getting now, is caused by the fact, that your "CustomImageBox" user control, is build with 14.1 Version of the Infragistics Controls, and that's why it is looking for them when you drag it on the Design surface. If you have the source code which creates this customer control, you would have to rebuild it using the new version of the Infragistics Controls 2014 vol2, and then replace the control from the toolbox, with the newly created one.
I have created for you the following private case - CAS-152229-V6F8B8, where you would be able to provide us with a sample, that our Version Utility 2014 vol2 is not able to upgrade currently.