{"id":148,"date":"2010-11-25T23:10:16","date_gmt":"2010-11-25T22:10:16","guid":{"rendered":"http:\/\/www.mysticslayer.com\/?p=148"},"modified":"2010-11-25T23:10:16","modified_gmt":"2010-11-25T22:10:16","slug":"w3svc-deadlock-detected-by-debug-assert-in-asp-net-2-0","status":"publish","type":"post","link":"http:\/\/www.mysticslayer.com\/?p=148","title":{"rendered":"W3SVC Deadlock Detected by Debug.Assert in ASP.NET 2.0"},"content":{"rendered":"<p>After a hard day with some errors failing a production server at a customer I had to find out what caused all these troubles&#8230; Well I had alot of messages in the Application Log with the messages ViewState verification failed&#8230; what&#8217;s causing all these messages? Well I had to find it out&#8230; So after some research it could be alot of things that causing these messages, but I couldn&#8217;t find out which one it was&#8230;<\/p>\n<p>Till I found another error message in the System Log&#8230; these messages caused a Deadlock on the Thread, and if this happens IIS will create a new Thread that will continue, but after 20 deadlocks IIS went down&#8230; hmm odd, so I found out that this came from the application. And it came from the System.Diagnostics.Debug.Assert, but huh, I thought that I had delivered a Release version. Well maybe, maybe not. So I knew for some reason this was causing all these messages.<\/p>\n<p>Well I thought that I could kill these messages by setting debug=&#8221;false&#8221;, well I can assure you, that won&#8217;t work. I had that figured out the next day, when the Administrator called me that the production server went down every 5 to 10 minutes&#8230; hmm so I called Edward Bakker, and asked him if he had a solution. After some talking with each other and Internet by hand I searched and came out by the blog of Scott Hanselman. And he had the solution for my problem.<\/p>\n<p>This problem can cause severe damage and it seems to be a bug in ASP.NET 2.0&#8230; Thanks to Scott and Edward I managed to figure it out.<\/p>\n<p>Link to blogpost by Scott Hanselman: http:\/\/www.hanselman.com\/blog\/PreventingDialogsOnTheServerSideInASPNETOrTraceFailConsideredHarmful.aspx<\/p>\n","protected":false},"excerpt":{"rendered":"<p>After a hard day with some errors failing a production server at a customer I had to find out what caused all these troubles&#8230; Well I had alot of messages in the Application Log with the messages ViewState verification failed&#8230; what&#8217;s causing all these messages? Well I had to find it out&#8230; So after some [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[281,211,101,282],"tags":[284,364,286,285,283,354,287,288,365],"class_list":["post-148","post","type-post","status-publish","format-standard","hentry","category-asp-net-2-0","category-iis","category-programming","category-w3svc","tag-asp-net","tag-asp-net-2-0","tag-assert","tag-deadlock","tag-debug","tag-iis","tag-ui-message","tag-viewstate-failed","tag-w3svc"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/pe1EH-2o","_links":{"self":[{"href":"http:\/\/www.mysticslayer.com\/index.php?rest_route=\/wp\/v2\/posts\/148","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.mysticslayer.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.mysticslayer.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.mysticslayer.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.mysticslayer.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=148"}],"version-history":[{"count":1,"href":"http:\/\/www.mysticslayer.com\/index.php?rest_route=\/wp\/v2\/posts\/148\/revisions"}],"predecessor-version":[{"id":149,"href":"http:\/\/www.mysticslayer.com\/index.php?rest_route=\/wp\/v2\/posts\/148\/revisions\/149"}],"wp:attachment":[{"href":"http:\/\/www.mysticslayer.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=148"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.mysticslayer.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=148"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.mysticslayer.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=148"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}