Windows phone app - live tile https issue

55 Views Asked by At

Recently I updated the scheme from http to https in my window phone app. So far network request works fine. However, the live tile is not working anymore. Then I tried to debug and found that:

System.ArgumentException occurred at Microsoft.Phone.TaskModel.Interop.ApplicationHost.GetFileSystemPath(String uri)

Also:

System.Reflection.TargetInvocationException occurred Message:
A first chance exception of type
'System.Reflection.TargetInvocationException' 
occurred in mscorlib.ni.dll
Additional information: Exception has been thrown by the target of an
invocation.

Finally:

 at Microsoft.Phone.TaskModel.Interop.ApplicationHost.GetFileSystemPath(String uri)
   at Microsoft.Phone.Shell.ShellTileData.GetLocalFilePath(Uri imageUri)
   at Microsoft.Phone.Shell.UriToLocalStoreConverter.Convert(Object value, Type targetType, Object parameter, CultureInfo culture)
   at Microsoft.Phone.Shell.ShellTileData.SerializeToToken(IPMTileInfo token)
   at Microsoft.Phone.Shell.ShellTile.Update(ShellTileData data)
   at AlarmScheduledTaskAgent.ScheduledAgentSettings.updateLiveTileUI()

I know the issue comes from the URI image for liveTile because if I change back to http liveTile is loading the image correctly. Also I tried to use another http image it doesn't crash. But if I use another https image online it crashes.

Although I didn't find anything indicating liveTile doesn't support https, anyone knows how to fix the issue? Thanks!

0

There are 0 best solutions below