Collecting a memory dump with ProcDump when ASP.NET ISAPI is reported unhealthy or deadlock detected in an ASP.NET application

PROBLEM You are running an ASP.NET application in IIS. You noticed that the worker process shuts down and restarts. At the same time you see one or both of the following events in the event logs: Event ID 2262: ISAPI ‘C:\Windows\Microsoft.NET\Framework\<version>\aspnet_isapi.dll’ reported itself as unhealthy for the following reason: ‘Deadlock detected’. Event ID 5013: A…

0

Easiest way to generate MachineKey

Have you ever needed to generate a MachineKey to use in your application’s configuration file or in machine.config? You may need a MachineKey in several scenarios. One of them is the scenario where you deploy your application in a web farm. One another scenario is to need to encrypt Forms Authentication tickets. You have some…

25

Public webcast about latest Security Advisory bulletin (2659883 - Vulnerability in ASP.NET Could Allow Denial of Service)

Microsoft will host a webcast to address customer questions on latest published security bulletin about vulnerability in ASP.NET which could allow denial of service: Title: Information About Microsoft’s December 2011 Out-of-Band Security Bulletin ReleaseDate: Thursday, December 29, 2011, at 1:00 P.M. Pacific Time (U.S. & Canada). URL: https://msevents.microsoft.com/CUI/EventDetail.aspx?EventID=1032502798 For more information about the vulnerability and…

0

Debug Diagnostic Tool (DebugDiag) 1.2 is released

Debug Diagnostic Tool (a.k.a. “Debug Diag” or “DebugDiag”) version 1.1 is one of the most popular debugging tools which helps us to collect/analyze crash or hang dumps. However most of the features of the v1.1 is not working on Windows 7 or Windows Server 2008 / R2. Today, we have released Debug Diagnostic 1.2 which works on Windows…

4

Session_OnEnd or Session_End events in global.asax won't fire if you store ASP.NET sessions out of proc (in State Server or SQL Server)

This is an overlooked behavior which may break your ASP.NET application if you are using Session_OnEnd or Session_End events in Global.asax. Here is a snippet from related article from MSDN: The Session_OnEnd event is only supported when the session-state HttpSessionState.Mode property value is InProc, which is the default. If the session-state Mode is set to…

4

Web services may fail on IIS 7.5 or IIS 7.0 (with OS SP1) with .Net 4.0

This is a hot topic discussed in the forums and we have decided to put this on a knowledge base article: Web services may fail on Microsoft Internet Information Services (IIS) 7.5 and Windows 7 Service Pack 1 with .NET Framework 4.0 due to extensionless URL handlershttp://support.microsoft.com/kb/2520479 Here is the symptoms you may see: Consider…

0

Enabling session compression in ASP.NET 4.0

Session objects are vital components in most of web applications. ASP.NET provides a few options to store the sessions, such as in-proc and out-proc. In-proc sessions are stored in the worker process memory while the out-proc sessions are stored in another process. You have two options when working with out-proc sessions: SQL Server or State…

1

Collect network trace data within your ASP.NET application

If you read one of my previous posts about reverse engineering of a shortened URL, then you probably saw the comment from Richard Deeming, saying that there is a better approach to achieve the task. The comment was about to avoid unnecessary trip between the client and the server and I have added an update…

0

How to reverse engineer a shortened URL

URL shortening services have become very popular as Twitter hits the “top web sites” charts day by day. Since Twitter has a 140 characters limitation for its messaging system, this limitation creates the need to find a way to save more space for texting. Speaking of more space, URL shortening services help a lot. A…

4