This is a migrated thread and some comments may be shown as answers.

What does this error mean?

8 Answers 383 Views
Spreadsheet
This is a migrated thread and some comments may be shown as answers.
zlazic
Top achievements
Rank 1
zlazic asked on 02 Jun 2016, 02:02 PM
Severity Code Description Project File Line Suppression State
Error Unknown build error, 'Cannot resolve dependency to assembly 'Telerik.Windows.Documents.Spreadsheet, Version=2016.2.421.45, Culture=neutral, PublicKeyToken=5803cfa389c90ce7' 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 442 Position 76.' TelerikWpfApp2 D:\visual studio 2015 Projects\TelerikWpfSolution\TelerikWpfApp2\Views\MailView.xaml 442

8 Answers, 1 is accepted

Sort by
0
Accepted
Tanya
Telerik team
answered on 06 Jun 2016, 06:37 AM
Hi Zeljko,

A similar error is usually observed when there is an assembly that is missing or it is with a different version compared with the other referenced binaries. Please, ensure that all the required references are added to the project and they are with the same version.

If you have previously added different references, you could also manually delete the bin and obj folders and rebuild the project in order to ensure that there are no cached by Visual Studio files.

Hope this helps.

Regards,
Tanya
Telerik
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
0
Alex
Top achievements
Rank 1
answered on 25 Jul 2016, 04:34 PM

Hi, I'm also getting a weird error. 

Workbook workbook;
            IWorkbookFormatProvider formatProvider = new XlsxFormatProvider();

            using (FileStream input = new FileStream(fileName, FileMode.Open))
            {
                workbook = formatProvider.Import(input);
            }

When I'm running this code, there is an exception at the line 

IWorkbookFormatProvider formatProvider = new XlsxFormatProvider();

With the error message:

Additional information: Could not load file or assembly 'Telerik.Windows.Documents.Core, Version=2015.3.930.40, Culture=neutral, PublicKeyToken=5803cfa389c90ce7' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040).

I did use all of the references that you linked in the replied. 

Also, when I try to make the radSpreadSheetControl with the XAML:

 <telerik:RadSpreadsheet Name="hello" HorizontalAlignment="Left" Margin="0,10,0,0" VerticalAlignment="Top"/>

There is a constructor error of

A first chance exception of type 'System.Windows.Markup.XamlParseException' occurred in PresentationFramework.dll

Additional information: 'The invocation of the constructor on type 'Telerik.Windows.Controls.RadSpreadsheet' that matches the specified binding constraints threw an exception.' Line number '7' and line position '10'.

How would you fix this problem? 

0
zlazic
Top achievements
Rank 1
answered on 26 Jul 2016, 01:47 PM
I ended up having to create a new solution and a new WPF project.
0
Todor
Telerik team
answered on 28 Jul 2016, 05:48 AM
Hello Alex,

As Tanya mentioned, when such problems are experienced, basically clean/rebuild the projects in your solution do the job if you sure all the necessary assemblies are referenced and their version is correct.

However, if this doesn't work in your scenario and even after the approach which Zeljko suggested the same problem occurs, please open a support ticket and send us the problematic project with assemblies included. In this way, it will be much easier for us to investigate the issue and try to find a solution for it.

Regards,
Todor
Telerik by Progress
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
0
Daniel
Top achievements
Rank 1
answered on 23 Nov 2018, 07:50 PM

I got this error in response to deleting my bin\debug folder.  For some reason my code was not up to date and no idea why so I deleted the bin\debug folder now my RadGlyph can't be found and the project won't build.

 

I'm getting this for an error

Unknown build error, 'Cannot resolve dependency to assembly 'Telerik.Windows.Controls, Version=2018.3.911.45, Culture=neutral, PublicKeyToken=5803cfa389c90ce7' 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.

0
Tanya
Telerik team
answered on 28 Nov 2018, 07:35 PM
Hello Daniel,

Could you please check the references and ensure the paths to the assemblies are correct and all the referenced assemblies are with the same version? It seems like there is an issue in resolving the dependency which is usually related to an incorrect path or version number, or some leftovers in the caches.

Regards,
Tanya
Progress Telerik
Get quickly and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Daniel
Top achievements
Rank 1
answered on 28 Nov 2018, 07:38 PM
I ended up building a brand new project and used the Telerik Nuget repository to get all my DLLs.  I seem to be up and running again, just unfortunate that it cost me over 4 days of work trying to diagnose this and then finally giving up and starting over.
0
Tanya
Telerik team
answered on 03 Dec 2018, 09:40 AM
Hello Daniel,

I am sorry to hear that you had to spend so much time with this error. My suggestion is still that there is something wrong with the references or the assemblies themselves and I would be glad to check the case if it appears again.

Regards,
Tanya
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Spreadsheet
Asked by
zlazic
Top achievements
Rank 1
Answers by
Tanya
Telerik team
Alex
Top achievements
Rank 1
zlazic
Top achievements
Rank 1
Todor
Telerik team
Daniel
Top achievements
Rank 1
Share this question
or