Akavache icon indicating copy to clipboard operation
Akavache copied to clipboard

UWP - MissingInteropDataException when compiling with .NET Native

Open elliot-7 opened this issue 8 years ago • 7 comments

I'm having the next exception when enable Compile with .NET Native tool chain, when I insert a object . the version is 5.0

An exception of type 'System.Runtime.InteropServices.MissingInteropDataException' occurred in System.Private.CoreLib.dll but was not handled in user code

Additional information: ComTypeMarshalling_MissingInteropData

If there is a handler for this exception, the program may be safely continued.

elliot-7 avatar Feb 27 '17 06:02 elliot-7

I just use 'akavache.core':'5.0.0' , this trouble is solved.

elliot-7 avatar Feb 27 '17 08:02 elliot-7

I just use 'akavache.core':'5.0.0' , this trouble is solved.

@wuqi713 shall I close this then?

shiftkey avatar Feb 27 '17 08:02 shiftkey

@shiftkey yes thanks.

elliot-7 avatar Feb 27 '17 09:02 elliot-7

sorry when i only use 'akavache.core':'5.0.0' is data no persistence,must have 'akavache.sqlite3' . if have this . the uwp is crash when Compile with .NET Native tool chain

elliot-7 avatar Mar 03 '17 08:03 elliot-7

@wuqi713 can you please clarify the steps to reproduce this issue? It's not clear to me what you have installed and how to trigger the error...

shiftkey avatar Mar 04 '17 00:03 shiftkey

sorry later to replay

  1. neget add dependencies
"dependencies": {
    "Splat": "1.6.2",
    "SQLitePCL.raw_basic": "0.8.6",
    "akavache.core": "4.1.2",
    "akavache.sqlite3": "4.1.2",
    "Microsoft.NETCore.UniversalWindowsPlatform": "5.1.0"
  }
  1. reference vc++ 2015
  2. init database
     BlobCache.ApplicationName = "Test";
     await BlobCache.Secure.InsertObject("dummy", "dummy");
  1. change project to release and enable Compile with .NET Native tool chain
  2. just crash like this
An exception of type 'System.Runtime.InteropServices.MissingInteropDataException' occurred in System.Private.CoreLib.dll but was not handled in user code
Additional information: ComTypeMarshalling_MissingInteropData
If there is a handler for this exception, the program may be safely continued

elliot-7 avatar Mar 06 '17 03:03 elliot-7

Same thing is happening to me whenever I use BlobCache.Secure location in UWP after native compilation (it's not happening in Debug)

megamingus avatar Oct 27 '17 15:10 megamingus