How to troubleshoot remote UWP AppService problems?

不打扰是莪最后的温柔 提交于 2019-12-22 10:28:31

问题


I'm playing around with remote UWP AppServices in C# and I run into a very early roadblock: Getting a RemoteSystem instance.

I followed the tutorial on https://msdn.microsoft.com/en-us/windows/uwp/launch-resume/communicate-with-a-remote-app-service with my own code and I tried out the RemoteSystems sample as part of https://github.com/Microsoft/Windows-universal-samples

Unfortunately, the result is always the same.

First I request access to remote systems:

RemoteSystemAccessStatus status = await RemoteSystem.RequestAccessAsync();

This is successful: status has the value RemoteSystemAccessStatus.Allowed.

Next, I create a HostName instance:

var deviceHost = new HostName("computer2");

Then I want to get a RemoteSystem instance:

RemoteSystem remoteSystem = await RemoteSystem.FindByHostNameAsync(deviceHost);

This throws an exception:

Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))

What I tried

  • Searching the web doesn't bring up much at this time (remote UWP AppServices are too new)
  • The event log doesn't have anything interesting in it
  • The Windows firewall seems to be configured correctly (this seems to be done automatically by Visual Studio)

What I'm looking for

One of my computer was upgraded from Windows 7 to Windows 10, the other from Windows 8.1 to Windows 10. So there is a chance my computers are "misconfigured" in some way (I remember the unnecessary task scheduler entries for Windows Media Center...)

My question: What are recommended practices to troubleshoot these kinds of problems? Are there tools that can help me? Right now I'm now even sure where to start looking...

来源:https://stackoverflow.com/questions/39650752/how-to-troubleshoot-remote-uwp-appservice-problems

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!