I have a WPF application that is using infragistics.
It works fine on the developers machine since it has infragistics installed on our machines.
However, while trying to build the application on a machine that does not have infragistics installed on it. The build fails with the below error.
Unknown build error, 'Cannot resolve dependency to assembly 'InfragisticsWPF4.v11.1, Version=11.1.20111.1002, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb' because it has not been preloaded. When using the ReflectionOnly APIs, dependent assemblies must be pre-loaded or loaded on demand through the ReflectionOnlyAssemblyResolve event.
The application just uses XamComboEditor in its WPF form and has infragistics referenced in the page as follows:
The project containing the form has reference to "InfragisticsWPF4.v11.1.dll" added from a commonlib folder not GAC.
The common lib folder also has reference to the below files:
Not sure why the project does not build and also not able . Please help....
In order to run an application that has dependencies on 3rd party assemblies on a machine that does not have those 3rd party assemblies installed, the assemblies need to be copied to the same location where the executable is. The assemblies need to reside next to the exe. Or they need to be in the GAC. If they are not located in these places, the application will not automatically find them.
From your description, it sounds like your Visual Studio project references the assemblies from a folder. The easiest thing to do would be to select all of the Infragistics assemblies from inside Visual Studio and change the "Copy Local" property to True. This will copy the Infragistics assemblies to the project output directory, right where the executable is.
Let me know if you have any further questions on this matter.
I tried using the approach suggested by you.
ie., "The easiest thing to do would be to select all of the Infragistics assemblies from inside Visual Studio and change the "Copy Local" property to True."
However, I still have the same issue and the solution does not build.
I think I got confused about what you were asking. Ok, if you don't have Infragistics installed and the assemblies are not located in the project's bin folder but in some commonlib folder, then you need to setup a reference path to that folder in order to build.