C# Launchurisync不会启动HTTP/S URI并返回false
看来C# Launchurisync不会启动HTTP/S URI并返回false,c#,.net,xaml,windows-8,uri,C#,.net,Xaml,Windows 8,Uri,看来 bool result = await Launcher.LaunchUriAsync(target); 不喜欢什么时候 target = new Uri(someInternalWebsite); 结果总是等于“false”。但是,如果我改变,它可以正常工作 // FROM target = new Uri(someInternalWebsite); // TO target = new Uri(someExternalWebsite); 我尝试禁用代理设置,但没有成功。是否有任何
bool result = await Launcher.LaunchUriAsync(target);
不喜欢什么时候
target = new Uri(someInternalWebsite);
结果总是等于“false”。但是,如果我改变,它可以正常工作
// FROM
target = new Uri(someInternalWebsite);
// TO
target = new Uri(someExternalWebsite);
我尝试禁用代理设置,但没有成功。是否有任何隐藏的.NET设置可能会影响此操作?以下是一些成功和失败的例子:
// these worked
target = new Uri("https://www.google.com");
target = new Uri("https://www.google.corp"); // obvious goes nowhere but still launches
// these did not work
target = new Uri("https://portal.<site_code>.<my_company>.corp"); //<my_company> and <site_code> are replaced with appropriate values
target = new Uri("https://<my_company>.corp");
//这些都起作用了
目标=新Uri(“https://www.google.com");
目标=新Uri(“https://www.google.corp"); // 显而易见的是,它什么地方也去不了,但仍然在发射
//这些都不起作用
目标=新Uri(“https://portal...corp"); // 并用适当的值替换
目标=新Uri(“https://.corp");
Thank you sir解决了我的问题,可能是重复的。