You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
#449
Open
JFulfordMS opened this issue
Jul 16, 2024
· 3 comments
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.
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.
The text was updated successfully, but these errors were encountered: