Click here to Skip to main content
15,911,139 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
I am getting the above error while executing a stored procedure through entity framework. While I run the SP directly on the SQL server through SQL management studio, it fetches all the data within 3-4 seconds.
I can avoid the timeout issue by increasing the CommandTimeOut property, but my question is why would entity framework take more time when the SP is returning the result in 4-5 seconds.

Is there something to do with the entity configuration part. Can anyone help me on this?

Thanks in advance.
Posted
Updated 29-Jan-14 3:33am
v2
Comments
thatraja 29-Jan-14 9:57am    
Share the SP content in your question

1 solution

 
Share this answer
 
Comments
pulak_mj 29-Jan-14 13:03pm    
Unfortunately, the link did not help. I dont want to increase the timeout property. Since the SP is taking few seconds to fetch the data, The entity should also take only that amount of time. Thanks for your help.

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


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