C# System.ni.dll中发生“System.Reflection.TargetInvocationException”类型的异常(即使在网络连接后也与之前相同) 即使我在没有代理的情况下连接到Internet,问题仍然和以前一样。请帮忙。提前谢谢。什么

C# System.ni.dll中发生“System.Reflection.TargetInvocationException”类型的异常(即使在网络连接后也与之前相同) 即使我在没有代理的情况下连接到Internet,问题仍然和以前一样。请帮忙。提前谢谢。什么,c#,windows,windows-phone-8,C#,Windows,Windows Phone 8,System.ni.dll中发生“System.Reflection.TargetInvocationException”类型的异常(即使在网络连接后也与之前相同) 即使我在没有代理的情况下连接到Internet,问题仍然和以前一样。请帮忙。提前谢谢。什么是内部异常?我仔细查看了详细信息,在这里找到了System.net.WebException。现在,我应该如何处理此异常。错误文本和状态代码是什么?System.ni.dll中发生了类型为“System.Reflection.TargetInv


System.ni.dll中发生“System.Reflection.TargetInvocationException”类型的异常(即使在网络连接后也与之前相同)
即使我在没有代理的情况下连接到Internet,问题仍然和以前一样。请帮忙。提前谢谢。什么是内部异常?我仔细查看了详细信息,在这里找到了System.net.WebException。现在,我应该如何处理此异常。错误文本和状态代码是什么?System.ni.dll中发生了类型为“System.Reflection.TargetInvocationException”的异常,但未在用户代码中处理 public partial class Page2 : PhoneApplicationPage { public Page2() { InitializeComponent(); Loaded += new RoutedEventHandler(MainPage_Loaded); // Sample code to localize the ApplicationBar //BuildLocalizedApplicationBar(); } void MainPage_Loaded(object sender, RoutedEventArgs e) { List transactionList = new List(); WebClient webClient = new WebClient(); webClient.DownloadStringAsync(new Uri("URI")); webClient.DownloadStringCompleted += (Object senders, DownloadStringCompletedEventArgs es) => { string json_arr = es.Result; /*the above statement throws the following exception. "An exception of type 'System.Reflection.TargetInvocationException' occurred in System.ni.dll but was not handled in user code"*/ if (es.Error == null) { JArray jsonarray = JArray.Parse(json_arr); for (int i = 0; i ("str1"); String str2= jsonarray[i].Value("str2"); String str3= jsonarray[i].Value("str3"); String str4= jsonarray[i].Value("str4"); String str5= jsonarray[i].Value("str5"); transactionList.Add(new name(str1,str2,str3,str4,str5)); } TransactionList.ItemsSource = transactionList; } }; } }