web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested Answer

Could not load file or assembly 'Azure.Security.KeyVault.Certificates. The system cannot find the file specified

(0) ShareShare
ReportReport
Posted on by

I am writing a plugin to get a certificate from Azure KeyVault.  While following the microsoft quickstart documentation we are getting these errors, depending on which reference I load (I switched after getting this error so many times):

Could not load file or assembly 'Azure.Security.KeyVault.Certificates, Version=4.2.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8' or one of its dependencies. The system cannot find the file specified

and

Could not load file or assembly 'Azure.Security.KeyVault.Secrets, Version=4.2.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference.

Visual Studio 2019 professional

.Net 4.7.1

Have attempted this as suggested on other sites:

<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<GenerateBindingRedirectsOutputType>true</GenerateBindingRedirectsOutputType>

284761.Capture.PNG

Here is the folder for reference as well.

I have the same question (0)
  • Suggested answer
    Guido Preite Profile Picture
    54,086 Moderator on at

    Hi,

    for plugins I normally suggest to use 4.6.2 (an higher version should work but better to make it 4.6.2)

    if you are online means the plugin is sandboxed, so not all DLLs are available, especially the one outside the standard .NET Framework

    you have two ways:

    1) try to ILMerge this DLL (not suggested as the DLL you are merging may cause the plugin to don't work at all, but may work in the end)

    2) move the logic to an external custom webservice and call this webservice inside your plugin

    3) check if the calls to Azure Key Vault can be done by standard http calls without using the DLL

    hope it helps

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 137 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 57

#3
Jimmy Passeti Profile Picture

Jimmy Passeti 50 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans