Is it possible to deploy an ASP.NET Core website in Azure without it running offline?

When we try to deploy an ASP.NET Core site on Azure, we get this error:

Error code: ERROR_INSUFFICIENT_ACCESS_TO_SITE_FOLDER Additional information: it is not possible to perform the operation ("Delete file") for the specified directory ("D: \ home \ site \ wwwroot \ TestAspNetCore.exe"). This can happen if the server administrator did not allow this operation for the user credentials that you are using. More details: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_INSUFFICIENT_ACCESS_TO_SITE_FOLDER .

The problem is that IIS is blocking the .exe file. We can go to the site offline, but with continuous delivery it would be nice to have a simple one.

Please note that ASP.NET 4.5 does not have this problem.

See also https://github.com/aspnet/IISIntegration/issues/226 and https://github.com/aspnet/Hosting/issues/141

+4
source share
1 answer

I had a similar headache, and it seems impossible, the most reliable solution I came up with is to create 1 build for the private local version, which can be disabled and then restarted immediately after deployment. Then I have a second build that launches a private version into production every week.

, , 20 , .

+3

Source: https://habr.com/ru/post/1659019/


All Articles