I wrote a WPF program recently that contained 2 tree views which were dynamically created, in part, by data located on a database. Initially, I had the creation of the tree views in my Windows_Loaded method, executing the build one after the other. The performance was ok, it took about 1.8 to 2 seconds for […]
Read More →Archive for May, 2017
Conditional Methods
One of, if not the most important concepts in software programming is that of Conditional Methods. Conditional methods provide a program with the ability to make decisions based on user input, user selections or data values. The code below is a simple example of a conditional method: [sourcecode language=”csharp” padlinenumbers=”true” autolinks=”false” gutter=”false” toolbar=”false”] public static […]
Read More →Interface in C#
An interface is like a contract. When a person signs a contract they are agreeing to perform in adherence to its’ contents. The person can take any action which is not specifically identified in the contract or build on top of the agreements within it. An interface has a similar concept. In this example I […]
Read More →Deploy to an Azure App Service using KUDU and a zip file
I wrote this article about a KUDU feature that supports the dragging and dropping of files from a local workstation to your Azure App Service. It is also possible to drag and drop a compressed ZIP file and KUDU will automatically unzip the content of the file. This is describe here already, but I like […]
Read More →How to make a local deployment and create a zip file for drag and drop deployment
I wrote this article “Deploy to an Azure App Service using KUDU and a zip file” that explains how to deploy a zipped file from a local workstation to KUDU. While I was writing that post I thought, hey, why not write how to create a zipped file for deployment as well, so here goes. […]
Read More →How to capture an ASP.NET Core memory dump on Azure App Service
I have written numerous articles about ASP.NET and creating memory dumps, but noticed I had not written one specifically about capturing an ASP.NET Core memory dump on an Azure App Service. Here are some of my ‘related’ articles of this matter. Create a memory dump for your slow performing Web App How to take a […]
Read More →How to map an Azure App Service Web App virtual directory to Azure Storage Container
OK, so I tricked you…you can’t do what is said in the title, well I better not say you can’t because someone could possibly come up with a a way, but what I should say is that if you try to create a virtual directory in the portal as shown in Figure 1, that points […]
Read More →Failed to save Auth settings Easy Auth Azure Authentication
When I tried to configure a a URL into the ALLOWED EXTERNAL REDIRECT URLS text box, as shown in Figure 1, I received the following error. Failed to save Auth Settings for authenticated App: {"Code":"Conflict","Message":"Cannot update the site ‘******’ because Authentication / Authorization was configured with an invalid external redirect URL ‘***.***.***.***’. All configured URLs […]
Read More →Failed to update App Service Plan the sites exceed maximum number of slots
After some testing I wanted to scale down my 5 instances of Standard S3 plan machines and I got this error when scaling down to FREE: Failed to update App Service plan : {“Code”:”Conflict”,”Message”:”The site(s) ” exceed maximum number of slots allowed for the hosting plan. Remove all deployment slots before scaling to a different […]
Read More →500.79 Internal Server Error
I got this exception when I was trying to configure the Azure Active Directory authentication in Advance management mode for an Azure App Service. Basically, I was following the (Alternative Method) instructions described here. After following all the instructions, I was getting this exception, as shown in Figure 1. The page cannot be displayed because […]
Read More →