WCF - (504) 服务器未返回此请求的响应

发布于 2024-08-28 03:52:06 字数 666 浏览 3 评论 0原文

我有一个 JSONP WCF 服务,使用后端作为 MySql。当我使用 Visual Studio 在本地运行它时,它工作正常。

现在我们已经将它托管在 Windows Server 2003 中。

现在出现了非常奇怪的问题。

当我使用 fiddler 发出一个不需要太多内部处理的请求时,它给我结果 200 OK,并提供所需的输出作为响应,但是当我这样做时需要一些内部数据处理的请求,它给我 504 错误(网关超时错误)。

我还查看了 C:\WINDOWS\system32\LogFiles 以查看它是否记录任何错误,但它在 fiddler 请求中显示正常结果,如下所示:

Fields: date time s-sitename s-ip cs-method cs-uri-stem cs-uri-query s-port cs-用户名 c-ip cs(用户代理) sc-status sc-substatus sc-win32-status

2010-04-07 10:08:06 W3SVC490896353 s-ip GET /InitialState.svc /GetInitialState reference=1&pageId=18 8080 - c-ip Fiddler 200 0 64

谁能帮我解决这个问题吗? 或者我可以尝试找出它发生的原因的任何想法? 任何帮助将不胜感激...

I have a JSONP WCF service,using back end as MySql.It is working properly when i run it locally with visual studio.

Now we have hosted it in Windows Server 2003.

Now there is very strange problem occurring..

When I do a request with fiddler which does not require much processing internally, it gives me result 200 OK with desired output as response, But when I do a request which requires some internal data processing, it gives me 504 error(gateway time out error).

I also looked at C:\WINDOWS\system32\LogFiles to see if it logs any error but it shows ok result in fiddler request which is as follows:

Fields: date time s-sitename s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs(User-Agent) sc-status sc-substatus sc-win32-status

2010-04-07 10:08:06 W3SVC490896353 s-ip GET /InitialState.svc/GetInitialState reference=1&pageId=18 8080 - c-ip Fiddler 200 0 64

Can anyone please help me to resolve the problem ??
Or any ideas i can try to find out why it is happening ??
Any help will be appreciated...

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

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

发布评论

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

评论(1

隔纱相望 2024-09-04 03:52:06

它看起来像是客户端超时,或者服务器和客户端之间的超时。

要检查的事项:

  • 您是否使用代理服务器?是否设置了超时时间?
  • 客户怎么给你打电话?客户端的超时设置是多少?

It looks like a timeout on the client side, or on something between the server and the client.

Things to check:

  • Are you using a proxy server? Is there a timeout set on it?
  • How are you making the call from the client? What is the timeout setting on the client side?
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文