Search code examples
c#windows-phone-8.1windows-store

"The server machine is shutting down. (Exception from HRESULT: 0x800704E7)" while accessing Windows.ApplicationModel.Store.CurrentApp


I have this fragment of code:

Uri uri;
try {
    uri = Windows.ApplicationModel.Store.CurrentApp.LinkUri;
}
catch(Exception ex) {
    // exception is thrown
}

I get the exception:

ex = {System.Exception: The server machine is shutting down. (Exception from HRESULT: 0x800704E7) at Windows.ApplicationModel.Store.CurrentApp.get_LinkUri() at MyApp.Controls.Screens.MainScreenControl..ctor()}

What does it mean and how can I avoid this exception?

The similar, unresolved question is here: https://social.msdn.microsoft.com/Forums/windowsdesktop/en-US/6ebd1b23-b37b-4cc5-a840-d966527f7199/the-server-machine-is-shutting-down-exception-from-hresult-0x800704e7?forum=wpsubmit .


Solution

  • It looks like it was a temporary Windows Store server problem.