Click here to Skip to main content
15,896,063 members
Please Sign up or sign in to vote.
4.00/5 (2 votes)
Hi All,

I have a RDLC report in ASP.Net and to bind that report we are using Strongly Typed DataSet. We are getting Timed Out Expired Exception when we bind the report. We have also checked the Store Procedure on production server that takes approx 5 sec. But when we try to run from production website it throws TimedOut Expired Exception.

We check this with SQL Profiler. When we call the SP from code it execute the SP for 30 sec and throw us the Timed Out Exception. We also tried setting the CommandTimeout Property within the Table Adapter.
C#
((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).CommandTimeout = 120;

But still it's not working. Our SP is containing table variable, Function, PIVOT, Group BY, SUM

Regards,
Vinod D.
Posted
Updated 18-Aug-11 21:04pm
v2
Comments
Prerak Patel 19-Aug-11 3:06am    
Why do you repost it then? Format it properly. BTW, I am deleting your previous question.
Prerak Patel 19-Aug-11 3:07am    
and don't shout for downvotes. It was just one vote.
Herman<T>.Instance 19-Aug-11 3:19am    
have you done a debug and checked the CommandTimeOut value = 120?
whu u use the CommandCollection?
I my code i use sqlcommand.CommandTimeOut = 14400; and that works.

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900