Skip to content

IIS Local Dev, connectionStrings with AKV #165

Open
@coryisakson

Description

@coryisakson

I am getting the following error when using the AKV Builder and running a project on local IIS. The error does not occur with IIS Express. It also does not occur with appSettings, it is only with connecitonStrings.
To reproduce the error:
Launch VS 2019 as Admin
Created a new ASP.NET MVC project.
Changed the target framework to .NET 4.7.2.
Added the package for Microsoft.Configuration.ConfigurationBuilders.Azure v.2.0.0
Change the deploy target to Local IIS
Added the configBuilders="AzureKeyVault" attribute to the connectionStrings.

image

Following the instructions here: https://github.com/MicrosoftDocs/azure-docs/issues/17023#issuecomment-432340315 I am able to access the Key Vault even though the error still appears when starting the site via VS. Is it possible to prevent this error?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions