Reputation: 1171
I'm getting this error message when I compile my solution:
Unknown build error, 'Cannot resolve dependency to assembly 'InfragisticsWPF.Controls.Charts.XamDataChart, Version=15.1.20151.1000, 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. Line 11 Position 10.'
So far I've tried unsuccessfully the following solutions:
Any pointers?
Upvotes: 1
Views: 6686
Reputation: 4243
InfragisticsWPF.Controls.Charts.XamDataChart should be either in GAC or accessible through HintPath. Obviously it's not in GAC.
Check if your .csproj contains correct Reference with HintPath set and your DLL is exactly there. Should be something like this:
<Reference Include="InfragisticsWPF.Controls.Charts.XamDataChart">
<HintPath>..\My\Assembly\Path\InfragisticsWPF.Controls.Charts.XamDataChart.dll</HintPath>
</Reference>
If it's there than check version.
Upvotes: 1
Reputation: 3570
That assembly name just does not look right for the latest Infragistics control version 15.1. A couple of things I would try:
Run the latest Infragistics Version Utility to upgrade the project, if you have not already.
In your Solution Explorer, delete the reference to "InfragisticsWPF.Controls.Charts.XamDataChart" and add it back in, but the reference should look something like: "InfragisticsWPF4.Controls.Charts.XamDataChart" (the number 4 being the .Net version your project is set up for)
Delete the chart control and delete the reference, and from your Toolbox, drag the control back into your window and the correct reference(s) will be added for you.
Upvotes: 1