我得到同样的例外 [英] I am getting same exception
问题描述
当我转换从MongoDB中提取的非常大的文件数据并转换为字符串然后转换为ASCII时,我得到相同的异常。这是代码行。
Data = Encoding.ASCII.GetBytes(inputParameters.ToString());
其中输入参数具有DB数据。我还有一个问题是MongoDB是否能够从一个基于LINQ过滤的集合中提供大约6000多条记录。我观察到这需要花费很多时间。
请回复我在这里拍到的。
我尝试过:
Data = Encoding.ASCII.GetBytes(inputParameters.ToString());
它抛出system.OutOfMemory异常。
这有很多原因例外。请查看堆栈跟踪以获取有关错误及其源自代码的更多信息。
有详细描述可用...
点击此处访问链接...
Hi I am getting the same exception when i convert the very large files data pulled from MongoDB and converted to string then to ASCII. Here is the line of code.
Data = Encoding.ASCII.GetBytes(inputParameters.ToString());
where input parameters has DB data. And I have one more question is Is MongoDB Capable of giving around 6000+ records from one collection based on LINQ Filtering. I observed that it is taking much times.
Please reply I strucked here.
What I have tried:
Data = Encoding.ASCII.GetBytes(inputParameters.ToString());
it is throwing system.OutOfMemory exception.
there are many reason for this exception. Please review the stack trace for more information about the error and where it originated in the code.
there is a detailed description available ...
click here to visit the link...
这篇关于我得到同样的例外的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!