0

I am using Angular 2+ with asp.net Web API. I have C# DataTable which is returning to Angular 2+. I am using Post method for it.

But When I return my large data (85K+). It is returning fine from asp.net web API. But, It is giving me an error of "System.OutOfMemoryException" in browser. And, I am not able to receive the in Angular 2+.

I need to know if I am missing something, If yes then what. And, I want all record and in one short.

6
  • 1
    Although you use Angular, the issue isn't related to Angular. I'm removing the tag. Commented Jul 26, 2018 at 8:35
  • 1
    You're missing all of the relevant server code in your question. Commented Jul 26, 2018 at 8:36
  • Hii john What you want to know about server code. please do let me know. I will provide it. Commented Jul 26, 2018 at 8:45
  • You say you're returning "large data" and that the server is failing due to "System.OutOfMemoryException". You need to find the relevant code which is triggering this exception. Presumably you're not streaming the data to the client in some way, and are instead loading it fully into server memory. Commented Jul 26, 2018 at 8:50
  • With such a large data you should think about data virtualization, this might help to load only that part which user is viewing and performance will be better. Commented Jul 26, 2018 at 9:05

1 Answer 1

1

I found another way of loading data. As I am using HTTP to bring data from asp.net web API. so, I am bringing data into packets using custom observable. It solved my problem of bringing all data at a time and resolved the error "system.outofmemoryException".

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.