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。非常奇怪,但仍然会出现错误。您可以检查您的异常是否有内部异常集吗?