Have an 500 error using Azure Key&Vault when deploy IIS

KHSong 20 Reputation points
2024-05-09T01:20:58.1566667+00:00

Hello.

First of all, I succeed connecting between my Asp .NET Core 8 MVC project and Azure Key&Vault in local environment.

However, I got an 500 error after deploy into IIS in my computer.

What I want to do:

I just want to test that other employees can use website I made or not.

What I did:

I installed .NET 8 host bundle and IIS manager in my computer. And deployed the Asp .NET Core 8 MVC project.
I added Key&Vault service dependencies in VS2022 like below image.User's image Also allowed public access from all networks in Azure KeyVault Networking and got Key Vault Administrator, Owner permission and got All Permissions which Key, Secret, Certificate in Access polices.

User's image

Access Policies :User's image

User's image

without Azure of MVC project can perform 100% after deploy IIS in my local computer.

Could you mention what I'm missing?

Thank you.

Azure Key Vault
Azure Key Vault
An Azure service that is used to manage and protect cryptographic keys and other secrets used by cloud apps and services.
1,148 questions
Internet Information Services
{count} votes