1
votes

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?

2
Have you seen this answer? stackoverflow.com/a/3405483/2461203ragerory
Perhaps this might help you more ... stackoverflow.com/questions/3405053/…3-14159265358979323846264
@3-14159265358979323846264 that's a link to the question of the answer to which I linked..ragerory
@ragerory Great minds think alike. Clearly your fingers are quicker though :0)3-14159265358979323846264
@ragerory. Yes I have seen it. But it is not my case.El Padrino

2 Answers

1
votes

That assembly name just does not look right for the latest Infragistics control version 15.1. A couple of things I would try:

  1. Run the latest Infragistics Version Utility to upgrade the project, if you have not already.

  2. 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)

  3. 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.

1
votes

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.