There are numerous flavors of ASP.NET modules, for example Web Forms (Web Sites and Web Applications), Web Pages, Model-View-Controller (MVC) and the newest one Core. In this article I want to discuss some learnings about the difference between the compilations of an ASP.NET Web Site (Figure 1) and an ASP.NET Web Application (Figure 2). Figure […]
Read More →Archive for August, 2018
Publish has encountered an error ERROR_FILE_IN_USE
I was making a deployment to an ASP.NET Core application from Visual Studio and got this error, see Figure 1. Figure 1, deployment asp.net core web deploy msdeploy from visual studio Read some of my other web deploy articles here: Web Deploy ERROR_DESTINATION_NOT_REACHABLE Azure Web App ERROR_CONNECTION_TERMINATED msdeploy web deploy All of them are accessible […]
Read More →How to read, unable to read appsettings.json values ASP.NET Core
I wrote this article here “Database connection string when swapping between App Servers slots” and if you look at the last paragraph I mentioned a ‘gotcha’ when you have an application setting, “AppSetting” in your web.config file which has the same name as an application setting you have configured, via the portal of your Azure […]
Read More →Using Managed Service Identity (MSI) with an Azure App Service or an Azure Function
Instead of storing user id / passwords or database connection strings in source or configuration files, you should consider storing them in an Azure Key vault. Azure Function 400 Bad Request How to connect to a database from an Azure Function Create an Azure Key Vault secret How to connect to a database from an […]
Read More →How to connect to a database from an Azure Function using Azure Key Vault
In my original article here where I stored the database connection string in an Environment Variable which is no longer an optimal approach (it was only for example). I will now update the Azure Function to access an Azure Key Vault secret which has the database connection string and use it to make the database […]
Read More →Create an Azure Key Vault and Secret
Storing, for example, a database connection string which include server name, user id and password in source code or in a configuration file is what is called ‘password leaking’. That means that anyone who has access to application source code can search through and get access to the database, because the information required to connect […]
Read More →Azure Function 400 Bad Request
I was writing these articles and received this error when calling my Azure Function: [Info] The following Exception happened: Response status code does not indicate success: 400 (Bad Request). Create an Azure Key Vault secret Using Managed Service Identity MSI with and Azure App Service or an Azure Function How to connect to a database […]
Read More →How (I) would handle a timeout in Azure Function
I wrote this article about adding a host.json file to an Azure Function “How to add a HOST.JSON file to an Azure Function” and while I was breaking it, I saw a behavior which I didn’t expect. The behavior was that my code within the try…catch… block continued to execute after the timeout, the code […]
Read More →How to add a HOST.JSON file to an Azure Function
I have written numerous articles about Azure Functions, view them here. The fact is, the HOST.JSON file is created for you when the Azure Function App is created originally/initially and it does not need to be added. I expected to see it when I expanded the View Files for the Function, see Figure 1, but […]
Read More →Implementing custom cultures, CultureInfo, localize Azure App Service
You cannot, at this moment, create a custom culture on an Azure App Service. Cultures are part of the standard operating system and require changes to the registry to modify or add them. An Azure App Service runs in a sandbox which does not allow code or script to modify the registry. I do not […]
Read More →