.NET Core & ASP.NET Core 1.0 is being released at Red Hat DevNation.

Today is another milestone on developers’ world: .NET Core & ASP.NET Core 1.0 is being released at Red Hat DevNation. If you want to eyewitness that moment you can watch it here. If you want to get started with .NET Core & ASP.NET Core 1.0 (if you haven’t done yet), you can start with the following resources: .NET Home…


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…


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…


Use "Stopwatch" class to calculate the execution time

Although this class is not famous, it does a great job to calculate the execution time. Usually, the execution time of a code block is calculated by setting a start and stop variable (DateTime) just before and after the code block and then calculating the difference between “start” and “stop” variable by substracting the “start” from the “stop”. Yes, this does…


How to configure Debug Diagnostic to capture Stack Overflow exceptions

I have just found that one of my colleauges, Spike, posted a nice blog article here explaining how to create a StackOverflowException using .NET Framework. He also explained how to find the root cause of the issue with live debugging using WinDBG. In some of cases, especially where live debugging is not possible, you may…


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…


Visual Studio 2010 and .NET Framework 4 Training Kit is available for download

The Visual Studio 2010 and .NET Framework 4 Training Kit includes presentations, hands-on labs, and demos. This content is designed to help you learn how to utilize the Visual Studio 2010 features and a variety of framework technologies including: C# 4 Visual Basic 10 F# Parallel Extensions Windows Communication Foundation Windows Workflow Windows Presentation Foundation…


How to prevent ILDASM from disassembling my .NET code

Long story short – you can use SuppressIldasmAttribute attribute. However, please note that it won’t prevent decompilers (such as .NET Reflector, ILSpy or JustDecompile) from reverse engineering your code. Here are the details: What is IL? Intermediate Language (IL) is CPU-independent instructions and any managed (.NET) code is compiled into IL during compile time. This IL code then…


Decompiler tools for .NET Framework

A .NET application is compiled into IL (intermediate language) during compile time and it is compiled into platform specific binary code during runtime by JIT (Just in time) Compiler. You can decompile IL code to get the source code of the assembly. This is achieved by System.Reflection namespaces and classes. So you can write your own de-compiler….


.NET Reflector version 6 will be kept free for existing users

As I mentioned in one of my previous posts (http://blogs.msdn.com/b/amb/archive/2011/02/02/net-reflector-is-not-free-anymore.aspx), Red Gate has decided to charge $35 for .NET Reflector. However, based on the community feedback and the success of the version 7, RedGate has now decided to release a version of the Reflector 6 for the existing users. Here is a part of the…