Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When adding .netconfig to Azure Functions, permission denied is thrown #102

Open
kzu opened this issue May 13, 2022 · 0 comments
Open

When adding .netconfig to Azure Functions, permission denied is thrown #102

kzu opened this issue May 13, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@kzu
Copy link
Collaborator

kzu commented May 13, 2022

When configuring dotnetconfig with:

[assembly: FunctionsStartup(typeof(Startup))]

public class Startup : FunctionsStartup
{
    public override void ConfigureAppConfiguration(IFunctionsConfigurationBuilder builder)
        => builder.ConfigurationBuilder.AddDotNetConfig();
}

A runtime error is thrown:

2022-05-13T03:10:25.133 [Error] Executed 'xxx' (Failed, Id=xx, Duration=405ms)Access to the path 'C:\Program Files (x86)\SiteExtensions\Functions\4.3.2\64bit\.netconfig' is denied.

Looks like the file does not exist or we have no permissions to read it, and we fail miserably.

@kzu kzu added the bug Something isn't working label May 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant