Azure / AzureKeyVault

R interface to Azure Key Vault
Other
14 stars 7 forks source link

AsPages Method not found Exception #18

Open yossika-tr opened 1 year ago

yossika-tr commented 1 year ago

our team moved from connecting directly to Azure Key Vault to use the nuget package Azure.Extensions.AspNetCore.Configuration.Secrets and use the AddAzureKeyVault(URI, AzureCredential) method. when we did that the app threw the following exception: Method 'AsPages' in type 'FuncAsyncPageable`1' from assembly 'Azure.Security.KeyVault.Secrets, Version=4.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8' does not have an implementation. attempts to reduce Azure.Security.KeyVault.Secrets to 4.3 and 4.2 did not help. we also found this error in another open issue without solution: https://github.com/Azure/azure-functions-host/issues/9127

joshua-kissinger commented 10 months ago

Ran into this same problem and spent a day on it. The workaround by taxx on the link above does seem to avoid the issue, but it doesn't seem like it should be necessary. The problem was solved by changing the build/publish to target the default project explicitly: from '*/.csproj' to the csproj-file of the default project of the solution, ex: projects: '**/Service.csproj.