Publish has encountered an error ERROR_FILE_IN_USE

C# Benjamin Perkins
C# Benjamin Perkins

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…

0

How to read, unable to read appsettings.json values ASP.NET Core

ASP.NET Core Benjamin Perkins
ASP.NET Core Benjamin Perkins

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…

0

Using Managed Service Identity (MSI) with and Azure App Service or an Azure Function

Managed Service Identity MSI Benjamin Perkins
Managed Service Identity MSI Benjamin Perkins

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…

0

Implementing custom cultures, CultureInfo, localize Azure App Service

Azure App Service
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…

0

ASP.NET Core 2.1 and HTTP Error 502.5 – Process Failure

ASP.NET Core Benjamin Perkins
ASP.NET Core Benjamin Perkins

I was deploying my ASP.NET Core 2.1 64-bit HelloWorld application and got this error, Figure 1. Figure 1, ASP.NET Core 2.1 502.5 x64 64 bit What I realized was that the 64 bit .NET Core runtime is not yet on the platform.  You can check that via KUDU/SCM and look for the D:\Program Files\dotnet directory…

0

Web Deploy ERROR_DESTINATION_NOT_REACHABLE Azure Web App

Azure App Service
Azure App Service

I was writing this article where I was testing out how to backup my App Service from the Cloud Shell using BASH.  And I got this exception when I was publishing, Figure 1. Figure 1, ERROR_DESTINATION_NOT_REACHABLE publishing using MSDEPLOY Web Deploy from visual studio Kind of makes sense that trying to publish while the site…

0

Time sync, synchronization on an Azure App Service

Azure App Service
Azure App Service

An Azure App Service is PaaS and synchronizes the clocks based on the hosting platform.  As per this request, the drift may be up to 2 seconds and are synced once per week.  That request was made some years ago when an App Service was running on Windows Server 2012 and IIS 8.  With the…

0

How to deploy to Azure using an ARM template with PowerShell

Azure PowerShell Benjamin Perkins
Azure PowerShell Benjamin Perkins

I wrote this article here “How to use/create ARM templates for deployments” where I show how I generated the ARM template for multiple Azure features existing in a Resource Group.  I then deploy all features using the ARM template using the Template deployment blade in the portal.  This article explains how to run the same…

0

Creating an Azure App Service Hybrid Connection

Networking Benjamin Perkins
Networking Benjamin Perkins

This is such a simple yet powerful tool to use, easy to implement and does some real hard core, complicated stuff in the back ground to get the connectivity to work.  Similar instructions can be found here “Azure App Service Hybrid Connections”. I wrote this article about connecting an Azure App Service to VM in…

0

Troubleshooting App Service Hybrid Connection Manager

Networking Benjamin Perkins
Networking Benjamin Perkins

I wrote this article “Enable logging for your Hybrid Connection Manager, troubleshooting”, but that was for the deprecated Hybrid Connection feature which uses Azure Biztalk.   You would see any ‘classic’ connections in the ‘Classic hybrid connections’ area on the Hybrid connections as seen in Figure 1. Figure 1, classic hybrid connections If you are running…

0

How to use/create ARM templates for deployments

Template Azure ARM Benjamin Perkins
Template Azure ARM Benjamin Perkins

I was building a lab for the creation of a Hybrid Connection Manager (HCM) link between an Azure App Service and an Azure VM within a VNET.  In most cases, yes, you use HCM to access resources hosted within a another network (not always on Azure), but I didn’t have one of those and therefore…

0

Required parameter ‘adminPassword’ is missing (null).

Template Azure ARM Benjamin Perkins
Template Azure ARM Benjamin Perkins

In case you have not read the article which led to this one, check it out here “How to use ARM templates for deployments”.  Once I resolved the previous 2 bumps: Deployment template validation failed: Circular dependency detected on resource osDisk.managedDisk.id’ is not allowed The final action was to provide an admin password for my…

0

osDisk.managedDisk.id’ is not allowed

Template Azure ARM Benjamin Perkins
Template Azure ARM Benjamin Perkins

I was writting this article here “How to use ARM templates for deployments” and received the result seen in Figure 1. Figure 1, failed deployment using templates azure arm When I clicked on the operations details i found the following details. I found on GitHub here “Azure managed disk: osDisk.managedDisk.id is not allowed” that doing…

0

Deployment template validation failed: Circular dependency detected on resource

Template Azure ARM Benjamin Perkins
Template Azure ARM Benjamin Perkins

I was writing this article “How to use ARM templates for deployments” and received this error when I click the purchase button from within the portal. Here is a list of some actions to take if you get this exception “Solution 5 – circular dependency detected”. I did what the articles said and simply removed…

0

Beginning C# 7 Programming with Visual Studio 2017, co-author Benjamin Perkins

Beginning C# 7 Programming Benjamin Perkins
Beginning C# 7 Programming Benjamin Perkins

Beginning C# 7 Programming with Visual Studio 2017, co-author Benjamin Perkins The Beginning C# 7 Programming with Visual Studio 2017 book is now available, check it out here.  I had again an opportunity to contribute some chapters to this book.  What an awesome experience!  There are lots of examples, experiences, discussions and reviews of the…

0