WCF/WF - handling multiple web request to wcf service

Asked By AarthiElamathy on 17-Mar-11 03:48 PM
Hi

From my wcf method, the data access layer is accessed and the method may take a longer time to return the result (say more than a minute or two). In that case, when more than 1 request is sent to the wcf service, I get the below error

Object reference not set to an instance of an object.

Please let me know how to handle this issue.

Thanks
Peter Bromberg replied to AarthiElamathy on 17-Mar-11 03:51 PM
The best way to handle this is to optimize your data access layer so that it doesn't take more than a minute to return results. Who is going to wait around 1 or 2 minutes for some data to come back? Not me.