Health Monitoring reports “Invalid ViewState”

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]

SqlConnection.ConnectionTimeout does not get passed to SqlCommand.CommandTimeout

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]

Tags: , , ,

Data Access | .NET 2.0

Powered by BlogEngine.NET 1.5.0.7
Theme by Interakting

Interakting

A full service digital agency offering online strategy, design and usability, systems integration and online marketing services that deliver real business benefits and ensure your online objectives are met.

Calendar

<<  September 2010  >>
MoTuWeThFrSaSu
303112345
6789101112
13141516171819
20212223242526
27282930123
45678910

View posts in large calendar