c# - UWP - Exception from HRESULT: 0x80131040 -


i trying use onesignal push notification sdk 8.1+ exception. see : windows phone sdk installation

does mean can't use uwp app ?

exception :

could not load file or assembly 'system.componentmodel.dataannotations, version=3.5.0.0, culture=neutral, publickeytoken=31bf3856ad364e35' or 1 of dependencies. located assembly's manifest definition not match assembly reference. (exception hresult: 0x80131040) 

code :

protected override void onlaunched(launchactivatedeventargs e) {        onesignal.init("onesignal_app_id", e, notificationopened); }  private void notificationopened(string message, idictionary<string, string> additionaldata, bool isactive) {     system.diagnostics.debug.writeline("notificationopened:message:" + message);     system.diagnostics.debug.writeline("notificationopened:additionaldata:" + additionaldata);     system.diagnostics.debug.writeline("notificationopened:isactive:" + isactive); } 

to using onesignal wp 8.1 sdk on uwp project, compile & test project on release mode!!


Comments