Posts

Showing posts from March, 2018

Resolve "System.Reflection.MissingMetadataException" when running UWP app in release mode

Image
I had been seen an issue "System.Reflection.MissingMetadataException" when running a UWP app in release mode. It was failure at the code: public static MobileServiceClient MobileService = new MobileServiceClient(" "); I turn on the "Compile with .NET Native tool chain" option in property of project settings as below screen shot, and then run the app in Debug mode. This time it throws more details of error "'Microsoft.WindowsAzure.MobileServices.PlatformInformation' is missing metadata. For more information, please visit http://go.microsoft.com/fwlink/?LinkID=392859". I went to that link of page and also search it in google.  Now knew it was caused by the  ".NET Native does not presently have a just-in-time compiler to compile the pieces that are missing, everything that can be accessed at runtime needs to be known at the time of compilation". The reflection of mobile service can not be determined statically at the tim...