Using Network Tracing to debug System.Net based issues

This article has been moved to its new home here:  https://benperk.github.io/msdn/2014/2014-05-using-network-tracing-to-debug-system-net-based-issues.html I have worked on a number of cases where web services or URLs are called using a code segment like the below code snippet. HttpWebRequest request = (HttpWebRequest)WebRequest.Create(URL); HttpWebResponse response = (HttpWebResponse)request.GetResponse(); The result of the GetResponse() method is some kind of error, for example…


Configure Debug Diagnostic 2.0 to create a memory dump when a specific exception is thrown

This article has been moved to its new home here: https://benperk.github.io/msdn/2014/2014-04-configure-debug-diagnostic-2-0-to-create-a-memory-dump-when-a-specific-exception-is-thrown.html Debugging a process crash is a challenging activity.  Although you know the exception type, the exceptions error message and you know the method that it is being thrown from, you still can’t find out why the exception is being thrown.  It is especially complicated when…


Get Azure App Service deployment logs from KUDU

This article has been moved to its new home here: https://benperk.github.io/msdn/2014/2014-04-get-azure-website-deployment-logs-from-kudu.html If you are performing a deployment and it is not working, working only after some effort or it’s not working as expected, one feature that might help you find the reason is the deployment log available using KUDU. You can access your deployment details by entering https://standard.scm.azurewebsites.net…


Using HTTP ETW tracing to troubleshoot HTTP issues

This article has been moved to its new home here: https://benperk.github.io/msdn/2014/2014-03-using-http-etw-tracing-to-troubleshoot-http-issues.html I wrote this article here in regards to an issue that I was having after installing an SSL certificate on an IIS web server. One of the tools I used was the HTTP ETW trace, also known as LOGMAN. As you notice from reading the…


Using Procdump and Failed Request Tracing to capture a memory dump

This article has been moved to its new home here: https://benperk.github.io/msdn/2013/2013-12-using-procdump-and-failed-request-tracing-to-capture-a-memory-dump.html One of my favorite tools for troubleshooting Internet Information Service issues is ProcDump.  It is a single, small, yet powerful EXE that is very useful for capturing W3WP.exe process memory dumps. One of my other favorites is Failed Request Tracing which I have written about…


Could not load type “Namespace.Class” from assembly “Namespace”

This article has been moved to its new home here: https://benperk.github.io/msdn/2013/2013-12-could-not-load-type-namespace-class-from-assembly-namespace.html I have been working hard learning the new features of ASP.NET 4.5, specifically using the following methods: HttpResponse.BeginFlush HttpResponse.EndFlush Stream.ReadAsync HttpRequest.GetBufferedInputStream HttpRequest.GetBefferlessInputStream Stream.BeginRead Stream.EndRead All of which need to be implemented using either a handler or module, if you want to use them in IIS. …


Enable CAPI2 event logging to troubleshoot PKI and SSL Certificate Issues

This article has been moved to its new home here: https://benperk.github.io/msdn/2013/2013-09-enable-capi2-event-logging-to-troubleshoot-pki-and-ssl-certificate-issues.html The CryptoAPI 2.0 Diagnostics is a feature available on Windows Server 2008+ that supports the trouble shooting of issues concerned with, for example: Certificate Chain Validation Certificate Store Operations Signature Verification This article describes how to enable the CAPI2 Diagnostic, but for an in depth…


Troubleshooting badly behaving IIS application pools

This article has been moved to its new home here: https://benperk.github.io/msdn/2013/2013-07-troubleshooting-badly-behaving-iis-application-pools.html There are many reasons why an application pools’ worker process (W3WP.exe) could be behaving badly.  The best approach is to capture some memory dumps during the problem situation and then analyze them.  The problem with that is the root cause is not always obvious, even…


Create a memory dump when the W3WP process terminates using Procdump

This article has been moved to its new home here: https://benperk.github.io/msdn/2013/2013-06-create-a-memory-dump-when-the-w3wp-process-terminates-using-procdump.html There are times when you need to capture a W3WP memory dump when the process stops responding.  However, the process might stop responding in the middle of the night or early morning which is not the best time to manually take a memory dump. You…


Using Process Monitor to solve any problem, including DebugDiag

This articles has been moved to its new location here: https://benperk.github.io/msdn/2013/2013-05-using-process-monitor-to-solve-any-problem-including-debugdiag.html I attended TechReady15 and took part in a session from Mark Russinovich, the creator of Process Monitor and many if not all of the System Internals tools.  He mentioned that there is no problem which Process Monitor cannot be used to help resolve. I put that…