1

当我在 Azure 中为少数操作合同方法托管 WCF 服务时,我们遇到了这个异常。它正在从服务器返回已知对象的列表。如果我返回字符串或布尔而不是列表,那么它工作正常。

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

笔记:

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

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

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

4

0 回答 0