aspnet / MicrosoftConfigurationBuilders

Microsoft.Configuration.Builders
MIT License
118 stars 61 forks source link

Unable to connect to KeyVault from Azure VM for WebForm .Net 4.8 #150

Closed blackeagle1111 closed 3 years ago

blackeagle1111 commented 3 years ago

Hi all, I have WebForm application need to move to Azure VM and I am having different time connecting to Azure KeyVault. Managed Identity is on for that VM which currently hosts several applications (.NET, ASP.NET Core). They are able to connect to Key Vault. This application works fine on my local environment due to Azure CLI and VS. However it failed on my Azure VM. I am really sure it has to do with versioning of the libraries. Does anyone have the same problems as described here? Please suggest thing to try. Error: image

Thanks in advance!

My current configuration: web.config: image web.dev.config image packages.config: image

Expecho commented 3 years ago

Can you try to see if the work around described in #139 solves the issue?

blackeagle1111 commented 3 years ago

I have tried that and it still does not work. image

Any other suggestions?

blackeagle1111 commented 3 years ago

after adding <httpRuntime targetFramework="4.8" /> and it works

blackeagle1111 commented 3 years ago

add <httpRuntime targetFramework="4.8" /> to web.config