.net webservice错误

时间:2011-04-30 08:43:27

标签: .net silverlight wcf web-services wcf-ria-services

我正在使用服务在silverlight中制作一个程序。 一切都工作正常,但是当我昨天开始我的程序时,我收到了这个错误:CommunicationException未被用户代码处理,远程服务器返回错误:NotFound 我的代码以前工作过,我没有对它进行任何更改。 知道这可能是什么?以及如何解决它。

{System.Net.WebException: The remote server returned an error: NotFound. ---> System.Net.WebException: The remote server returned an error: NotFound.
   bij System.Net.Browser.BrowserHttpWebRequest.InternalEndGetResponse(IAsyncResult asyncResult)
   bij System.Net.Browser.BrowserHttpWebRequest.<>c__DisplayClass5.<EndGetResponse>b__4(Object sendState)
   bij System.Net.Browser.AsyncHelper.<>c__DisplayClass2.<BeginOnUI>b__0(Object sendState)
   --- Einde van intern uitzonderingsstackpad ---
   bij System.Net.Browser.AsyncHelper.BeginOnUI(SendOrPostCallback beginMethod, Object state)
   bij System.Net.Browser.BrowserHttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
   bij System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelAsyncRequest.CompleteGetResponse(IAsyncResult result)}

Stacktrace:
   bij System.ServiceModel.AsyncResult.End[TAsyncResult](IAsyncResult result)
   bij System.ServiceModel.Channels.ServiceChannel.EndCall(String action, Object[] outs, IAsyncResult result)
   bij System.ServiceModel.ClientBase`1.ChannelBase`1.EndInvoke(String methodName, Object[] args, IAsyncResult result)
   bij BiljartHandicap.UserValidationWebServiceReference.UserValidationWebServiceClient.UserValidationWebServiceClientChannel.EndValidateUsername(IAsyncResult result)
   bij BiljartHandicap.UserValidationWebServiceReference.UserValidationWebServiceClient.BiljartHandicap.UserValidationWebServiceReference.UserValidationWebService.EndValidateUsername(IAsyncResult result)
   bij BiljartHandicap.UserValidationWebServiceReference.UserValidationWebServiceClient.OnEndValidateUsername(IAsyncResult result)
   bij System.ServiceModel.ClientBase`1.OnAsyncCallCompleted(IAsyncResult result)

1 个答案:

答案 0 :(得分:1)

摘自a previous SO answer of mine

  

'NotFound'是一个通用的错误消息,可能意味着任何事情   ...略...
  无论如何,我发现用于跟踪此类问题非常宝贵的是Microsoft的Service Trace Viewer工具。阅读所有相关内容right here,只需对web.config进行一些简单的更改即可启用日志记录。