Chandra Eskay
Chandra Eskay

Reputation: 2203

Request timeout error while processing long running task

I'm processing and printing 1000 records in my ASP.NET site. When I click submit button the page loads for a while and goes to Request timeout error. I tried to increase the request timeout but this doesn't look like a good solution. Please suggest a best solution.

Also, how do I update the UI while the request is being processed. I need to show how many records have been processed till now.

How about creating a new thread.? What are the flaws with multithreading in ASP.NET?

Upvotes: 0

Views: 859

Answers (1)

Luke Baughan
Luke Baughan

Reputation: 4686

You could leverage SignalR to create a bi-directional communication channel between the server and the client which would process and feedback as necessary SignalR can be found here http://nuget.org/packages/SignalR on NuGet.

Upvotes: 3

Related Questions