Handling Timeouts In A Website SQLCommand Object and c#

Posted by user341684 on Stack Overflow See other posts from Stack Overflow or by user341684
Published on 2010-05-14T23:43:12Z Indexed on 2010/05/14 23:54 UTC
Read the original article Hit count: 225

Filed under:
|
|
|

I'm using visual studio 2008 and sql server 2005 and everything is working just fine under normal use. However if a user is on a page for a while several minutes with no activity then clicks a button on occassion the site throws the following exception ...

Procedure or Function "sp_name" parameter '@SomeParameterName', which was not supplied

I'm also encountering this error in Visual Studio while debugging the application, in otherwords run the site from visual studio then make some change to the html in VS save the changes and refresh the page.

The error is not consistent nor is the time the page has to stay idle in order for it to occur....

The current sql command object timeout is 30 secs and the website timeout is 30 minutes.

Has anyone else experienced this scenario and what is the fix as I would not except anything to go out of scope until the website timeout occurs ...

Any insight will be appreciated.

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about c#