Cannot read Failed Request Log, unformatted and unreadable

IIS Internet Information Services
IIS Internet Information Services

I often get Failed Request Trace logs via email that when I open them I only see the data, I mean it is not nicely formatted like that shown in Figure 1, rather I see what is in Figure 2. Figure 1, nice Failed Request Trace log Figure 2, not nice Failed Request Trace log,…

0

Capture a StackOverflowException and make a dump 0xc00000fd

WinDbg Debugging
WinDbg Debugging

I read in this article that “Starting with the .NET Framework 2.0, you can’t catch a StackOverflowException object with a try/catch block, and the corresponding process is terminated by default. Consequently, you should write your code to detect and prevent a stack overflow.”  That is the reason why the following code was crashing my process…

0

Machine Keys on an Azure App Service, machineKey multiple instances Azure

Azure App Service
Azure App Service

When you run an ASP.NET application on multiple instances of an App Service Plan (ASP) you do not need to worry about machineKeys as the App Service Platform will use the same one across all your instances and therefore will not need to make any changes to your application. I found this sample code and…

1

Setting up and using GitHub in Visual Studio 2017

Visual Studio
Visual Studio

I wrote this article here about setting up GitHub in Visual Studio 2015 and felt it necessary to document the same in Visual Studio 2017.  Here is how I setup GitHub source code management in Visual Studio 2017 Community. Install the GitHub extension for Visual Studio Create your GitHub repo and then login Create a…

3

How to enable C# 7 in Visual Studio 2017

Microsoft .NET
Microsoft .NET

I was working with Visual Studio 2017 and found that 4.6.2 is not installed as default yet, so I wrote this article here about that.  In that article I also point out that you need to install the System.ValueType NuGet package to the Tuples capabilities to work. This time I wanted to get the Pattern…

2

.Net Framework 4.6.2 not in Visual Studio 2017

Microsoft .NET
Microsoft .NET

Cannot find the .NET Framework 4.6.2 in Visual Studio 2017?  Without it you cannot get all the cool new C# features? When you create a new project for example, you may only see .NET Framework versions up to 4.6.1 as seen in Figure 1. Figure 1, where is 4.6.2 in Visual Studio 2017 This is…

8

Enable System.Net tracing on Azure App Service

Microsoft .NET
Microsoft .NET

It is becoming a common scenario that customers of Azure App Services Web Apps are making requests to services hosted on other Azure IaaS or PaaS platforms, services not hosted on the Azure platform (on premises) and which use the System.Net class.  For example, making a request from your code that uses either of the…

4

CodeDom provider type could not be located

Visual Studio
Visual Studio

I deployed an MVC web app to an IIS server and received this error, also show in Figure 1. Server Error in ‘/’ Application. Configuration Error Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately….

0

Setting up and using GitHub in Visual Studio 2015

Visual Studio
Visual Studio

Although I use TFS a lot, I thought I would setup a GitHub repository to host a public copy of my IIS, ASP.NET and C# troubleshooting labs located here. Here is how I did it. Install the GitHub extension for Visual Studio Create your GitHub repo and then login Create a GitHub repository Create a…

5

ASP.NET 5 renamed to ASP.NET Core 1.0

ASP.NET
ASP.NET

I was reading this article here which made a lot of sense.  There was a bit of confusion on my part that was touched on as originally I assumed that ASP.NET 5 was the newer version of ASP.NET 4.6 while in fact it was a whole new branch of the feature.  With branch I mean,…

0

Why is my ASP.NET application recycling, restarting

ASP.NET
ASP.NET

When you are experiencing slowness with your ASP.NET application, one place to check is if the application is being recycled.  If the application is being recycled over and over again, then sessions and application settings are lost and it has a pretty big impact on your users and customers. A place to begin your investigation…

0

StaticCompressionDisableCpuUsage and DynamicCompressionDisableCpuUsage

IIS Internet Information Services
IIS Internet Information Services

Performance problems are generally difficult to find the root cause of and fix.  There are so many ‘touch points’ that where to start looking much less finding the root cause while the issue is happening, can be a challenge. I found these 4 Compression settings very interesting and a system administrator should review them and…

0

Debug = True

ASP.NET
ASP.NET

If you have ever performed website optimization then it is likely you have read this article here.  This article discusses the impact of having the debug set to true in your production application.  In another one of my blogs on C#, I made the comment once about “what is a technical blog without a comparison of…

4

Using !DumpThreadConfig (!dtc) within WinDbg

WinDbg Debugging
WinDbg Debugging

I have written articles about how to capture a W3WP memory dump on Windows 2003 and Windows 2008.  Once you have the memory dump, you need to analyze it to find out what is causing the problem.  One command I use while analyzing a memory dump is !DumpThreadConfig or !dtc.  Figure 1 shows the output…

0

Setting up performance counters for ASP.NET

ASP.NET
ASP.NET

Troubleshooting a performance problem can be very complicated.  Unfortunately, in many cases you prepare and begin learning about how to fix a performance problem when it is happening or just after a performance problem.  The fact is, you need to monitor your system and gather statistics on what is considered “standard operating performance” before a…

4