1

我在 c#.net 中有一个与 mongodb 对话的宁静服务。当我向客户返回大约 20,000 条记录时,服务运行良好。但是增加返回的数据集会导致服务器端出现以下异常:

System.InvalidOperationException:服务器实例 xxx.xxx.xxx 不再连接。在 MongoDB.Driver.MongoServerInstance.AcquireConnection(MongoDatabase 数据库) 在 MongoDB.Driver.MongoServer.AcquireConnection(MongoDatabase 数据库, MongoServerInstance serverInstance

在客户端,我得到:

System.Net.WebException:远程服务器返回错误:(500)内部服务器错误。

服务适用于小型数据集。

4

0 回答 0