System.Net.WebException异常处理问题
用户代码未处理 System.Reflection.TargetInvocationException
Message=操作过程中出现异常,结果无效。有关异常的详细信息,请查看 InnerException。
StackTrace:
位于 System.ComponentModel.AsyncCompletedEventArgs.RaiseExceptionIfNecessary()
位于 Silverlight.DBOperationService.ISSelectCompletedEventArgs.get_Result()
位于 Silverlight.Events.ReportEvents.sys_ISSelect(Object sender, ISSelectCompletedEventArgs e)
位于 Silverlight.DBOperationService.DBOperationClient.OnISSelectCompleted(Object state)
InnerException: System.ServiceModel.CommunicationException
Message=远程服务器返回了错误: NotFound。
StackTrace:
位于 System.ServiceModel.AsyncResult.End[TAsyncResult](IAsyncResult result)
位于 System.ServiceModel.Channels.ServiceChannel.SendAsyncResult.End(SendAsyncResult result)
位于 System.ServiceModel.Channels.ServiceChannel.EndCall(String action, Object[] outs, IAsyncResult result)
位于 System.ServiceModel.ClientBase`1.ChannelBase`1.EndInvoke(String methodName, Object[] args, IAsyncResult result)
位于 Silverlight.DBOperationService.DBOperationClient.DBOperationClientChannel.EndISSelect(IAsyncResult result)
位于 Silverlight.DBOperationService.DBOperationClient.Silverlight.DBOperationService.IDBOperation.EndISSelect(IAsyncResult result)
位于 Silverlight.DBOperationService.DBOperationClient.OnEndISSelect(IAsyncResult result)
位于 System.ServiceModel.ClientBase`1.OnAsyncCallCompleted(IAsyncResult result)
InnerException: System.Net.WebException
Message=远程服务器返回了错误: NotFound。
StackTrace:
位于 System.Net.Browser.AsyncHelper.BeginOnUI(SendOrPostCallback beginMethod, Object state)
位于 System.Net.Browser.BrowserHttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
位于 System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelAsyncRequest.CompleteGetResponse(IAsyncResult result)
InnerException: System.Net.WebException
Message=远程服务器返回了错误: NotFound。
StackTrace:
位于 System.Net.Browser.BrowserHttpWebRequest.InternalEndGetResponse(IAsyncResult asyncResult)
位于 System.Net.Browser.BrowserHttpWebRequest.<>c__DisplayClass5.<EndGetResponse>b__4(Object sendState)
位于 System.Net.Browser.AsyncHelper.<>c__DisplayClass2.<BeginOnUI>b__0(Object sendState)
InnerException:
[解决办法]
反射的错误,还是仔细查查是不是类型不对
[解决办法]