If you have not tried creating a Self-Hosted Web API, you might give it a shot, here is a good, getting started example. Once it gets into production, if you are looking for ways to troubleshoot a slow performing self-hosted Web API, searching for a W3WP process to take a memory dump of or applying […]
Read More →Category: ASP.NET
Connection Timeout (Timeout Expired) on Azure Web App Site / Azure SQL
I not only support Azure Web Apps, formerly Azure Websites, but I use it too. I had a site that was getting the exception shown in Figure 1. The error was “Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in […]
Read More →How (I) to setup Azure Active Directory with a Web App
Controlling access to a website is cool. I have mostly used Forms Authentication in the past, hashed the credentials, then stored and retrieved them from a custom database during the login. However, starting now, I think I will use Azure Active Directory (AAD) from now on, as it has so many options, it is very […]
Read More →Using TLS 1.2 with WCF
NOTE: Security is a very serious topic and you should always engage an IT security expert before deploying an application that needs to be secure. This article is intended to share my experience versus being an article to use as a guideline. With all the news about the different vulnerabilities like heartbleed and poodle, developers […]
Read More →Could not load type “Namespace.Class” from assembly “Namespace”
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. Can’t say that I did this a lot in the […]
Read More →Debug = True
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 […]
Read More →Setting up performance counters for 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 […]
Read More →