Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/338.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/.net/22.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# Launchurisync不会启动HTTP/S URI并返回false_C#_.net_Xaml_Windows 8_Uri - Fatal编程技术网

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解决了我的问题,可能是重复的。