by Dominic Zukiewicz
24. March 2010 09:29
One problem we have been encountering for nearly a year is a problem which reports ASP.NET errors, but actually does not cause any problems for the user. The error looks like this:
** Events **
---------------
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 3/23/2010 11:44:44 AM
Event time (UTC): 3/23/2010 11:44:44 AM
Event ID: 6be66d016f1e43b48adbd638e202c698 Event sequence: 3548 Event occurrence: 1 Event detail code: 0
Process information:
Process ID: 7872
Process name: aspnet_wp.exe
Account name: WEBSITE\ASPNET
Exception informat...
[More]
by Dominic Zukiewicz
23. March 2010 09:45
I was working on a project in which the traffic had picked up significantly on a database. So in order to allow some of the longer queries to execute, I increased the SqlConnection time by changing the connection string: Connection Timeout=120 Great! We're done - aren't we? Well, no, we aren't. The problem is that although the SqlConnection.ConnectionTimeout has now been changed, the SqlCommand.CommandTimeout does not get affected and remains on the default 30 seconds. You will need to manually copy this value across to the CommandTimeout: SqlConnection conn = new SqlConnection ("M...
[More]