Exception on StoreContext.GetAppAndOptionalStorePackageUpdatesAsync

234 views Asked by At

I am new in .Net development. In a UWP app i need to check for package update in Store. I have followed this tutorial. For below code i am getting Exception.

 StoreContext context = StoreContext.GetDefault();
 // Get the updates that are available.
 IReadOnlyList<StorePackageUpdate> updates =
 await context.GetAppAndOptionalStorePackageUpdatesAsync();

Exception thrown: 'System.IO.FileNotFoundException' in System.Private.CoreLib.dll An exception of type 'System.IO.FileNotFoundException' occurred in System.Private.CoreLib.dll but was not handled in user code The system cannot find the file specified. (Exception from HRESULT: 0x80070002)

I can't find any hint why i am getting this exception. Please help my about this exception and how can i resolve this.

0

There are 0 answers