You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I installed Akavache 4.0 via nuget, and with this code, I get the exception (WP8.1 WinRT project):
var image = new BitmapImage();
var source = ...
var sb = await BlobCache.LocalMachine.LoadImageFromUrl(source);
using (var ms = new MemoryStream())
{
await sb.Save(CompressedBitmapFormat.Png, 1.0f, ms);
image.SetSource(System.IO.WindowsRuntimeStreamExtensions.AsRandomAccessStream(ms));
}
Exception details:
{System.TypeInitializationException: The type initializer for 'Akavache.BlobCache' threw an exception. ---> System.IO.FileLoadException: Could not load file or assembly 'Splat, Version=1.3.3.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMarkHandle stackMark, IntPtr pPrivHostBinder, Boolean loadTypeFromPartialName, ObjectHandleOnStack type)
at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean loadTypeFromPartialName)
at System.RuntimeType.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark)
at System.Type.GetType(String typeName, Boolean throwOnError)
at Akavache.DependencyResolverMixin.InitializeAkavache(IMutableDependencyResolver This)
at Akavache.BlobCache.<.cctor>b__0()
at Splat.Locator.RegisterResolverCallbackChanged(Action callback)
at Akavache.BlobCache..cctor()
--- End of inner exception stack trace ---
at Akavache.BlobCache.get_LocalMachine()
at (my program here)
The "The located assembly's manifest definition does not match the assembly reference." part is likely the issue here. I'm using Splat in the source, and I see Splat in my project references, and I have Splat.dll in packages\Splat.1.3.3\lib\Portable-Win81+Wpa81, but when I inspect the file, it's not version 1.3.3.0, it's version 0.0.0.0:
The text was updated successfully, but these errors were encountered:
I installed Akavache 4.0 via nuget, and with this code, I get the exception (WP8.1 WinRT project):
Exception details:
The "The located assembly's manifest definition does not match the assembly reference." part is likely the issue here. I'm
using Splat
in the source, and I see Splat in my project references, and I haveSplat.dll
inpackages\Splat.1.3.3\lib\Portable-Win81+Wpa81
, but when I inspect the file, it's not version 1.3.3.0, it's version 0.0.0.0:The text was updated successfully, but these errors were encountered: