当我在Azure中托管WCF服务以获得少量操作 Contract 方法时,我们遇到此异常 . 从服务器返回已知对象的List . 如果我返回字符串或bool而不是List,那么这是正常的 .

{System.ServiceModel.CommunicationException:远程服务器返回错误:NotFound . ---> System.Net.WebException:远程服务器返回错误:NotFound . ---> System.Net.WebException:远程服务器返回错误:NotFound . System.Net上的System.Net.Browser.BrowserHttpWebRequest.InternalEndGetResponse(IAsyncResult asyncResult),System.Net.Browser.AsyncHelper . 上的System.Net.Browser.AsyncHelper . <> c_DisplayClassa.b_9(Object sendState) . ---内部异常堆栈跟踪的结束---在System.ServiceModel.Channels的System.Net.Browser.BrowserHttpWebRequest.EndGetResponse(IAsyncResult asyncResult)的System.Net.Browser.AsyncHelper.BeginOnUI(SendOrPostCallback beginMethod,Object state)中 . HttpChannelFactory.HttpRequestChannel.HttpChannelAsyncRequest.CompleteGetResponse(IAsyncResult result)---内部异常堆栈跟踪结束---在System.ServiceModel.Channels.ServiceChannel.EndCall(String)处的System.ServiceModel.AsyncResult.End [TAsyncResult](IAsyncResult结果) ReportServiceClient.ReportServiceClientChannel.EndGetData上的System.ServiceModel.ClientBase1.ChannelBase1.EndInvoke(String methodName,Object [] args,IAsyncResult result)中的action,Object [] outs,IAsyncResult result) (IAsyncResult结果)位于ReportServiceClient.EeEndGetData(IAsyncResult结果)的ReportServiceClient.IReportService.EndGetData(IAsyncResult结果),位于System.ServiceModel.ClientBase`1.OnAsyncCallCompleted(IAsyncResult result)}

注意:

如果在Webserver中托管相同的服务那么工作正常 .

如何在Azure中找到WCF错误信息?

如果我在Webserver中托管服务,那么我将启用服务跟踪并从svclog文件中找到服务失败的确切原因 . 但我不能在Azure中做同样的事情 . 是否可以在Azure中找到错误信息?