我有一个使用 WCF RIA 服务和 WindowsAuthentication 模式的 Silverlight 应用程序。当我部署到我们的 Web 服务器时,长度超过 20 秒的调用似乎会丢失身份验证,并且我会从 IE 中看到一个对话框,要求重新输入我的用户名和密码。
有谁知道如何解决这个问题?
更新:我发现这个问题与 Fiddler 所指示的内容无关,身份验证对话框是另一个问题的副作用。
当我打开 WCF 诊断跟踪时,我发现真正发生的情况是服务由于图中的最大项目数而引发异常。我的 web.config 中用于覆盖服务的绑定具有旧的服务名称,因此未选取它。
基于此,我强烈建议遇到问题的任何人在 Web 服务器上打开 WCF 诊断跟踪,并在出现 fiddler 错误之前查看其中的内容...
感谢您对帖子的回复以及您愿意提供帮助的意愿。 ..
I have a Silverlight application which uses WCF RIA services and WindowsAuthentication mode. When I deploy to our web server calls that are greater than 20 seconds in length seem to lose authentication and I get a dialog box from IE to re-enter my username and password.
Does anyone know how to fix this issue?
UPDATE: I found out that the issue had nothing to do with what Fiddler was indicating and the authentication dialog was a side effect of another issue.
When I turned on WCF diagnostic tracing I found that what was really happening was that the service was throwing an exception due to the max number of items in graph. My bindings in my web.config to override the service had an old service name so it was not picked up.
Based on this I would highly suggest that anyone having an issue turn on WCF diagnostic tracing on the web server and see what that says before following an error out of fiddler...
Thanks for the response to the post and your will to help out...
发布评论
评论(1)
我认为这应该是由超时问题引起的,请查看以下链接:
receiveTimeout
希望对您有所帮助。如果不起作用,您可以尝试查看其他超时,例如可靠会话中的inactivityTimeout。
I think it should be caused by the timeout issue, take a look at following link:
receiveTimeout
Hope it help you. If it doesn't work, you may try to look at other timeouts, for example inactivityTimeout in reliable session.