The other day I (2012) discovered the power of a recursive function / method (I.e. recursion) while I was struggling to write some code. I think one of the focal points of writing good code is writing it in a way that it expands and contracts dynamically. As well, writing code that you will rarely, […]
Read More →Category: C# Blogs
Bot Framework 405 Method Not Allowed, 401 Unauthorized and 500, Internal Server Error getting started
I have been working with the Bot Framework available from here. While I was testing it out I encountered 3 road blocks that I will share just to make it move along faster if you happen to encounter the same. I followed these instructions which worked just fine. The issue I faced were during the […]
Read More →How (I) connected a console application to a Web API protected by an Azure Active Directory
The code can be downloaded from here or on GitHub. I wrote this post here where I discussed how I configured Azure Active Directory into one of my Azure App Service Web Apps. One of the main differences between that post and what I am trying to do here was realized when I received this […]
Read More →Setting up and using GitHub in Visual Studio 2015
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 […]
Read More →Beginning C# 6 Programming with Visual Studio 2015, co-author Benjamin Perkins
Beginning C# 6 Programming with Visual Studio 2015, co-author Benjamin Perkins The Beginning C# 6 Programming with Visual Studio 2015 book is now available, check it out. I had the opportunity to contribute a some chapters to it. What an awesome experience! There are lots of examples, experiences, discussions and reviews of the new features […]
Read More →Monitoring your multiple Azure Web App instances
When you scale to more than a single instance of a Web App, it gets a little complicated to monitor or troubleshoot an issue. The complicated part is trying to find which of the instances are experiencing the problem. In many cases, a majority of the requests complete just fine, but from time to time, […]
Read More →Sending email from an Azure Web App using an O365 SMTP server
One of the surprises I had when I moved many of my sites from a domain hoster to an Azure Web App was that the platform only provided web services and that I had lost my SMTP services. That meant I was not able to send or receive emails from my private domains. I rushed […]
Read More →Using Network Tracing to debug System.Net based issues
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 a Timeout Exception, which is not always brought up to […]
Read More →Using the ListCollectionView Filter method in WPF with C#
NOTE: This solution does not implement paging and requires the retrieval of the entire result set. If your dataset is huge, I wouldn’t go this route. Other options, LIKE %text%, FULL-TEXT search, Lucene.Net…and many others… Check out another of my blogs where I defer the retrieval using a Delayed Action. Again, if you look hard […]
Read More →Using the ListCollectionView with a deferred Filter method in WPF with C#
In another blog I covered how to perform filtering using the ListCollectionView class on a datagrid. What I noticed on the implementation on a larger result set was a little lag in the response when characters were being entered into the filter textbox. The way it was implemented was for each character entered; perform a […]
Read More →