I am working on JQX Grid in MVC, But when I try exporting as excel from the grid, I am getting error as "The server closed the connection without sending any data" . I know it is not the problem with the JQX. The problem is it happens only if I am exporting
large number of data (let us say 8000). I have searched for this , I have found the same problem here
http://www.codeproject.com/Questions/413999/The-server-closed-the-connection-without-sending-a, but it does not solve my problem. Help me if you can . Any help is appreciated.
I have tried this also in my web config.
<security> <requestFiltering> <requestLimits maxAllowedContentLength="30000000"/> </requestFiltering> </security>
Thanks And Regards
According to your description, I think the reason of that issue is that it will takes too much time to export the data to excel. So I suggest that you could do that logic in the other thread.
Do you know how much time it took before the error? Based on the time you can either set the time out or the content length.
I have already tried with the maximum content length value. But still it is showing the same.
I am sending the data to a server , and format the data , after formatting I am sending back it to my site. I guess that is why I am getting this error. So I will try to handle the data in my server itself without sending it to other one. If it solves my
problem. I will share it here. Thanks a lot for the reply.
You may provide the related code here.