Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Could not load file or assembly 'clrcompression, xamarin forms UWP

During OnLaunched at Xamarin.Forms.Forms.Init(e); the app throws System.IO.FileNotFoundException Could not load file or assembly 'clrcompression,

I have the following dependencies

"Microsoft.NETCore.UniversalWindowsPlatform": "5.2.2",
"Newtonsoft.Json": "9.0.1",
"System.Collections.Immutable": "1.2.0",
"Xamarin.Forms": "2.3.1.114"

All the xamarin sample apps for uwp are running without a problem.

UPDATE: The exception is now gone, reason unknown. The only known difference is that i added and then removed xlabs dependencies. I think this triggered a rebuild of a broken dependency graph?!

It would still be nice to know how to debug this dependency graph issues.

like image 615
Henk Avatar asked Aug 24 '16 22:08

Henk


1 Answers

This happens if you have all of the 'Common Language Runtime Exceptions' enabled in your Exception Settings.

Often at program load (in many .NET frameworks), there will be exceptions which are fired which are completely harmless and correctly handled.

If this exception is bothering you then simply deselect 'Break when this exception is thrown' and hit Continue.

enter image description here

like image 118
Elliot Woods Avatar answered Sep 29 '22 11:09

Elliot Woods