无法从.NET控制器读取大数据大小$ .ajax [英] Cannot read large data size $.ajax from.net controller

查看:94
本文介绍了无法从.NET控制器读取大数据大小$ .ajax的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到使用ajax请求读取大数据的问题:从javascript到C#。



注意:



1-我设置为maxRequestLength =52428800和maxAllowedContentLength =52428800



2-请求成功处理普通数据。



我仍​​然得到:500(内部服务器错误)的大数据案例。对于小的或正常的数据大小,每件事都可以。



我尝试了什么:



1-我设置为maxRequestLength =52428800和maxAllowedContentLength =52428800



2-请求成功处理正常数据。

I faced issue with reading large data using ajax request: from javascript to C#.

Notes :

1- I have set to maxRequestLength="52428800" and maxAllowedContentLength="52428800"

2- The request worked successfully for normal data.

And I still get: 500 (Internal Server Error) for large data case. And every thing is okay for small or normal data size.

What I have tried:

1- I have set to maxRequestLength="52428800" and maxAllowedContentLength="52428800"

2- The request worked successfully for normal data.

推荐答案

500错误意味着您的服务器端代码崩溃或以其他方式引发错误。除非您对自己的代码进行一些诊断步骤并在问题中提供其他信息,否则NOBODY可以告诉您在问题中发布的内容出了什么问题。



我们只能处理你在问题中提出的内容,而你根本没有在你的问题中提供任何有用的信息。



你要去必须在调试器下运行代码和/或在代码中添加日志以显示它在文件或数据库中的进度。



您是否查看了服务器应用程序事件登录?您是否检查过IIS日志中是否有与崩溃相关的消息?
500 errors mean your server-side code crashed or otherwise threw an error. Unless YOU go through some diagnostic steps on your own code and supply additional information in your question, NOBODY can tell you what's going wrong with what you've posted in your question.

We only get to work with what you put in the question, and you've supplied no usable information in your question at all.

You're going to have to run your code under the debugger and/or add logging to the code to show it's progress to a file or database.

Have you looked in the servers Application Event Log? Have you checked the IIS logs for any messages related to the crash?


尝试没有任何域管理的anther Internet连接
try anther internet connection without any domain Administration


这篇关于无法从.NET控制器读取大数据大小$ .ajax的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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