在Silverlight客戶端,我得到的錯誤,但它始終是這樣的:獲得從WCF更詳細的錯誤信息在Silverlight客戶端
例外的操作過程中出現,使結果無效。 檢查InnerException異常 的詳細信息。
在 System.ComponentModel.AsyncCompletedEventArgs.RaiseExceptionIfNecessary() 在 SecretaryAppNav.ClientService.GetChildAndOpiekunByFirstnameLastnameCompletedEventArgs.get_Result() 在 SecretaryAppNav.Views.FindChild.Client_GetChildAndOpiekunByFirstnameLastnameCompleted(對象 發件人, GetChildAndOpiekunByFirstnameLastnameCompletedEventArgs e)上 SecretaryAppNav .ClientService.Service1Client.OnGetChildAndOpiekunByFirstnameLastnameCompleted(Object state)
在客戶端文件,我總是使用try catch來趕erorrs但它永遠不會調用,:
void Client_GetChildAndOpiekunByFirstnameLastnameCompleted(object sender, GetChildAndOpiekunByFirstnameLastnameCompletedEventArgs e)
{
try
{
this.dataForm1.ItemsSource = e.Result.Collection;
}
catch (FaultException ex)
{
System.Windows.Browser.HtmlPage.Window.Alert(ex.Reason.ToString() + ex.Code.ToString());
throw new FaultException(ex.Reason, ex.Code, "Klikanie");
}
}
我應該把這個抓在我的服務文件趕上SOAP錯誤?沒有更多的信息,我總是在我的代碼尋找錯誤就像在黑暗中...:/
哦耶!現在我看到它:) – netmajor 2010-08-06 06:43:34