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

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
Assignees

Comments

@JFulfordMS
Copy link

JFulfordMS commented Jul 16, 2024

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.

@esilva600
Copy link

Hello,

Maybe you need to open a ticket with the Support Team and share your code snippet for further assistance.

@JFulfordMS
Copy link
Author

JFulfordMS commented Jul 16, 2024

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.

MoneySolverDocuSignAzure.zip

@garg-mudit
Copy link
Contributor

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.

@garg-mudit garg-mudit self-assigned this Jul 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants