.net RIA 服务的第 10 次调用失败,并显示“用户登录失败...”
仅在 9 次成功调用同一 .net RIA 服务后,我才会收到此错误。 System.Windows.Ria.Data.EntityOperationException:用户登录失败....
net RIA 服务没有 EntityOperation 方法,只有一个返回 XElement 的 ServiceOperation。
I get this error only after 9 successful calls to same .net RIA service.
System.Windows.Ria.Data.EntityOperationException: Login failed for user...
The .net RIA service has NO EntityOperation methods, only the one ServiceOperation which returns an XElement.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
是否可能是您的 WCF 连接不足?当您使用完频道后是否无法关闭频道?
我不久前在这篇文章中遇到了类似的事情: 链接
Could it be that you're running out of WCF connections? Are you failing to close your channels when you're finished with them?
I came across something similar a while ago in this post: Link
事实证明这是 SQLServer 身份验证的问题。仅当我使用来自 .net RIA 服务的受信任连接时,才会出现此问题。将其更改为 SQLServer 凭据连接,应用程序可以根据需要多次调用该服务
Turns out it was an issue with SQLServer authentication. The problem only occurs if I use a trusted connection from the .net RIA service. Changing that to a SQLServer credentials connection, and the app can call the service as many times as needed