Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/285.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# 获取异常System.Net.Http.HttpRequestException_C#_Xaml_Windows Store Apps_Visual Studio 2013 - Fatal编程技术网

C# 获取异常System.Net.Http.HttpRequestException

C# 获取异常System.Net.Http.HttpRequestException,c#,xaml,windows-store-apps,visual-studio-2013,C#,Xaml,Windows Store Apps,Visual Studio 2013,我有这个例外,但似乎找不到我的问题: A first chance exception of type 'System.Net.Http.HttpRequestException' occurred in System.Net.Http.dll 我用用户名和密码登录到服务器,这个过程运行得很好 这是我的密码: protected override void OnNavigatedTo(NavigationEventArgs e) { teamScreen = "https://thew

我有这个例外,但似乎找不到我的问题:

A first chance exception of type 'System.Net.Http.HttpRequestException' occurred in System.Net.Http.dll
我用用户名和密码登录到服务器,这个过程运行得很好

这是我的密码:

protected override void OnNavigatedTo(NavigationEventArgs e)
{
    teamScreen = "https://thewebsite.com/teambeta/Login.aspx?" + "username=" +
        logInUserIdString + "&password=" + logInPasswordString +
        "&mobile=1&offsetHours=" + timezone;
    webView1.Navigate(targetUri);
}
但我不想在问题未解决的情况下向应用商店提交应用程序


有没有人知道问题是什么,因为我似乎无法找到我为什么会得到例外?谢谢。

仍然没有解决,但我确实修复了以下问题,因为我没有正确设置Uri

以下是正确的代码:

protected override void OnNavigatedTo(NavigationEventArgs e)
{
    teamScreen = "https://thewebsite.com/teambeta/Login.aspx?" + "username=" +
        logInUserIdString + "&password=" + logInPasswordString +
        "&mobile=1&offsetHours=" + timezone;
    Uri targetUri = new Uri(teamScreen);
    webView1.Navigate(targetUri);
}

我不确定它以前为什么工作,因为我从未设置URI。非常奇怪,但仍然会出现错误。

您可以检查您的异常是否有内部异常集吗?