DocuSign.eSign: Could not load file or assembly 'Microsoft.IdentityModel.Tokens, Version=7.5.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. The system cannot find the file specified
Assembly is present but getting continued failures from library. Using .NET 8 in an Azure Function.
The same code snippet works fine in a standard .NET 8 console application.
Hello,
Maybe you need to open a ticket with the Support Team and share your code snippet for further assistance.
Is that the best solution? The code snippet is taken directly from the documentation and works in a .NET 8 Console Application but not in an .NET8 Azure Function.
var _apiClient = new ApiClient("https://na3.docusign.net/restapi"); var authToken = _apiClient.RequestJWTUserToken( Environment.GetEnvironmentVariable("ClientId"), Environment.GetEnvironmentVariable("UserId"), Environment.GetEnvironmentVariable("AuthUrl"), DsHelper.ReadFileContent(Path.Combine(Environment.CurrentDirectory, "key.key")), 1, scopes);
I'm attaching an example solution that can demonstrate the issue. You will need to add your own key file and client/userid.
Hi @JFulfordMS, Thanks for sharing the repro solution. I'll review and test it on our end. Although I can't provide a specific timeline right now, I'll do my best to offer a solution or a SDK patch fix as soon as possible.