如何处理catch inasp.net c#中的错误? [英] How to handle the catch Error inasp.net c#?
本文介绍了如何处理catch inasp.net c#中的错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我上传了一份1.88 MB的文件大小。当解析这个简历时,现在抛出异常类型''System.OutOfMemoryException''被抛出。
如何处理这个eXCEPTION?
Hi,
I have uploaded a Resume 1.88 MB file size. When a parse this resume then now throw "Exception of type ''System.OutOfMemoryException'' was thrown."
How to HANDLE THIS eXCEPTION?
推荐答案
请在web.config中尝试这个。
< system.web>
< httpruntime>
executionTimeout =90
maxRequestLength =4096
useFullyQualifiedRedirectUrl =false
minFreeThreads =8
minLocalRequestFreeThreads =4
appRequestQueueLimit =100
enableVersionHeader =true
/>
Please try this with in the web.config
<system.web>
<httpruntime>
executionTimeout="90"
maxRequestLength="4096"
useFullyQualifiedRedirectUrl="false"
minFreeThreads="8"
minLocalRequestFreeThreads="4"
appRequestQueueLimit="100"
enableVersionHeader="true"
/>
这篇关于如何处理catch inasp.net c#中的错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文