Safe assembly web parts

Occasional Visitor

Hi,

 

I am modifying an existing web parts, into a sharepoint application. I am trying to add some dlls ( microsoft.graph.dll and identity.client.dll). I installed the package through nuget.

The error i keep getting is the follow.


Could not load file or assembly 'Microsoft.Identity.Client, Version=4.35.0.0, Culture=neutral, PublicKeyToken=0a613f4dd989e8ae' or one of its dependencies. The system cannot find the file specified.

 

What I found was maybe the assembly dll where not signed. So i followed this article to sign the dlls.

https://docs.microsoft.com/en-us/visualstudio/sharepoint/how-to-mark-controls-as-safe-controls?view=...

However I still get the errors. Here my setting on how i sign.

 

Jseb04_0-1627396629019.pngJseb04_1-1627396650864.png

 

I am lost, and not sure what else to do.

0 Replies