Posted on: 7/29/2013 1:54:38 PM | Views : 913


I'm getting timeout error while importing large number of fields from CSV file. While importing it refers the timeout which is configured in <httpRuntime executionTimeout="120" from web.config file. If I changed to "60", getting time out exception after reaches 60 seconds. If I changed to "180" timeout exception getting thrown after reaches 180 seconds.
We cannot predict the number of fields from CSV file, some times a large number files will be processing in live environment. I wanted to set Maximum time out in this import logic until it reaches the end of the file. Our client will not mind the time which we configured for import logic, our goal should import all the fileds without time out error.
In googling, I found that we can set a timeout through the following statement with the specified duration,
HttpContext.Current.Server.ScriptTimeout = 360;
But we cannot predict the time which ...

Go to the complete details ...