.net 网络服务错误

发布于 2024-11-04 09:02:11 字数 1929 浏览 5 评论 0原文

我正在 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)

I am making a program in silverlight with services.
Everything was working fine but when I started my program yesterday I got this error: CommunicationException was unhandled by user code, the remote server returned an error: NotFound
My code has worked before and I did not make any changes to it.
Any idea what this could be? And how to solve it.

{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)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

酷遇一生 2024-11-11 09:02:11

摘自我之前的回答

“NotFound”是一条通用错误消息,可能意味着任何事情。
...剪断...
无论如何,我发现 Microsoft 的 Service Trace Viewer 工具对于跟踪此类问题非常有用。 在这里阅读所有相关内容,所需要做的只是一些简单的更改添加到您的 web.config 以启用日志记录。

Excerpted from a previous SO answer of mine:

'NotFound' is a generic error message that could mean just about anything.
...snip...
In any case, something i have found invaluable for tracking this sort of issue is the Service Trace Viewer tool from Microsoft. Read all about it right here, all it takes is some simple changes to your web.config to enable the logging.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文