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

时间:2012-11-30 11:35:47

标签: wcf azure azure-service-runtime

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

  

{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)      at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelAsyncRequest.CompleteGetResponse(IAsyncResult result)      ---内部异常堆栈跟踪结束---      在System.ServiceModel.AsyncResult.End [TAsyncResult](IAsyncResult结果)      在System.ServiceModel.Channels.ServiceChannel.EndCall(String action,Object [] outs,IAsyncResult result)      在System.ServiceModel.ClientBase 1.ChannelBase 1.EndInvoke(String methodName,Object [] args,IAsyncResult result)      在ReportServiceClient.ReportServiceClientChannel.EndGetData(IAsyncResult结果)      在ReportServiceClient.IReportService.EndGetData(IAsyncResult结果)      在ReportServiceClient.OnEndGetData(IAsyncResult结果)      在System.ServiceModel.ClientBase`1.OnAsyncCallCompleted(IAsyncResult result)}

注意:

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

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

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

0 个答案:

没有答案