我得到同样的例外 [英] I am getting same exception

查看:127
本文介绍了我得到同样的例外的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我转换从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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆