Debug Diagnostic 2.0 – Creating a rule in Hang mode to use the response time of the request.

  For Debug Diagnostic 1.2, please refer to http://blogs.msdn.com/b/friis/archive/2012/01/04/debug-diagnostic-1-2-creating-a-rule-in-hang-mode-to-use-the-response-time-of-the-request-etw.aspx     This article will detail the action plan you can implement to create a rule in Debug Diagnostic 2.0 to automate the dump generation when a hang of the IIS server or of your application is occurring.   This action plan can be applied when…

0

Debug Diagnostic 2.0 – Creating a rule in crash mode

  For Debug Diagnostic 1.2, please refer to http://blogs.msdn.com/b/friis/archive/2012/01/04/debug-diagnostic-1-2-creating-a-rule-in-crash-mode.aspx   This article will detail the action plan you can implement to create a rule in Debug Diagnostic 2.0 to automate a dump generation when an IIS process is crashing (in example a “W3WP.exe” process). This action plan can be applied when your W3WP.exe process is…

0

Both Static and Dynamic Pages are Loading Very Slowly even for Local Visits on IIS 7.X

  Usually when dynamic pages (ASPX) have slow responding issue, we can still get satisfied performance with static pages (HTML, GIF, CSS…). Because they are loaded on different request handling stacks and static pages loading by default doesn’t require compile/rendering/Executing on server side.   However recently I met one case that both static and dynamic…

0

You may experience “The configuration system has already been initialized” exception after installing the KB2844285

  Background Recently we have several cases related to the KB2844285 (MS13-052: Description of the security update for the .NET Framework 2.0 Service Pack 2 on Windows XP and Windows Server 2003: July 9, 2013). Customer reported that some of the web applications failed to work with the following exceptions in event logs:   Event…

0

Case Study: OutOfMemory Exception caused by XmlSerializer is not used properly

Background Recently we handled a case which symptom was a little bit weird: there is only an error code saying 998 without anything else. We checked the error code 998 and was told “invalid access to memory location”.  So it seems that the memory was corrupted during that time.   Finally, we captured dump file…

1

Dll version may not be updated after some .net 2.0 hotfix is applied

This article only applies to .NET Framework 2.0 SP2, the .NET Framework 3.0 SP2, and the .NET Framework 3.5 SP1, when used with Windows 2003.   I got several cases related to dual branch servicing model during the past months. The customers may ask: 1.       My system.web.dll version is newer than the hotfix which the…

0

W3WP.EXE hangs with 50% CPU usage

  This is an ASP.Net application running on IIS 7. The application hangs with 50% CPU every time making a change to web.config. Customer has to restart IIS services to resolve the problem. Changing web.config during application running is not a good idea since this triggers application domain recycle. This used to cause short time…

0

High Performance ASP.NET application (1) – Optimizing state management

Today we’ll talk a little about how to optimize state management when coding your ASP.NET application. I believe most of ASP.NET developers more or less have some knowledge of using state in ASP.NET. In this article, we’ll not be focusing on how to use state in ASP.NET but how to more efficiently and effectively manage…

0

How to completely release WorkflowRuntime resource

In case you need to create multiple WF 3.5/3.0 WorkflowRuntime objects, you may find the memory usage of the workflow application keep rising (memory leak) although you have disposed the objects.   To completely release the resource of WorkflowRuntime, we need to call StopRuntime method before it is disposed. For example:                 using…

0

How to load the specified mscordacwks.dll for managed debugging when multiple .NET runtime are loaded in one process

  When multiple .NET runtime are loaded in one target process or one dump file, for example:   0:030> lm start             end                 module name 00000000`1b6d0000 00000000`1b9ba000   System_Data   (deferred)             … 000007fe`f3e60000 000007fe`f47c5000   clr        (deferred)             … 000007fe`f9880000 000007fe`fa230000   mscorwks   (deferred)  …   0:030> lmvm clr start             end                 module name 000007fe`f3e60000 000007fe`f47c5000   clr        (deferred)                 Image path: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll…

5