I have configured the sub-directory for my app in Path Mappings like this:
Virtual Path Physical Path Type
/ site\wwwroot application
/myapp site\wwwroor\myapp application
I deployed my app using DevOps CI/CD. I pointed Virtual Application to /myapp. It deployed successfully, but when I run the app, I got an error. When I deploy the app directly to wwwroot folder, I have no issue and I do not get the error.
CoreCLR Version: 4.6.29215.2
Description: The process was terminated due to an unhandled exception.
Exception Info: Microsoft.Azure.KeyVault.Models.KeyVaultErrorException: Operation returned an invalid status code 'Forbidden'
at Microsoft.Azure.KeyVault.KeyVaultClient.GetSecretsWithHttpMessagesAsync(String vaultBaseUrl, Nullable`1 maxresults, Dictionary`2 customHeaders, CancellationToken cancellationToken)
at Microsoft.Azure.KeyVault.KeyVaultClientExtensions.GetSecretsAsync(IKeyVaultClient operations, String vaultBaseUrl, Nullable`1 maxresults, CancellationToken cancellationToken)
at Microsoft.Extensions.Configuration.AzureKeyVault.AzureKeyVaultConfigurationProvider.LoadAsync()
at Microsoft.Extensions.Configuration.AzureKeyVault.AzureKeyVaultConfigurationProvider.Load()
at Microsoft.Extensions.Configuration.ConfigurationRoot..ctor(IList`1 providers)
at Microsoft.Extensions.Configuration.ConfigurationBuilder.Build()
at Microsoft.AspNetCore.Hosting.WebHostBuilder.BuildCommonServices(AggregateException& hostingStartupErrors)
at Microsoft.AspNetCore.Hosting.WebHostBuilder.Build()
at myapp.Main(String[] args) in D:\a\1\s\Program.cs:line 33
Application '/LM/W3SVC/1475845380/ROOT/myapp' with physical root 'D:\home\site\wwwroot\myapp\' failed to start process with commandline 'dotnet .\ACSIdentityServer.dll' with multiple retries. Failed to bind to port '34162'. First 30KB characters of captured stdout and stderr logs from multiple retries:
Process Id: 14144.
File Version: 13.1.19331.0. Description: IIS ASP.NET Core Module V2 Request Handler. Commit: 62eee6e6d21c95668a9e9529dce6562cc6c9f3bf

