Safe assembly web parts

%3CLINGO-SUB%20id%3D%22lingo-sub-2591378%22%20slang%3D%22en-US%22%3ESafe%20assembly%20web%20parts%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2591378%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20modifying%20an%20existing%20web%20parts%2C%20into%20a%20sharepoint%20application.%20I%20am%20trying%20to%20add%20some%20dlls%20(%20microsoft.graph.dll%20and%20identity.client.dll).%20I%20installed%20the%20package%20through%20nuget.%3CBR%20%2F%3E%3CBR%20%2F%3EThe%20error%20i%20keep%20getting%20is%20the%20follow.%3C%2FP%3E%3CP%3E%3CBR%20%2F%3ECould%20not%20load%20file%20or%20assembly%20'Microsoft.Identity.Client%2C%20Version%3D4.35.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D0a613f4dd989e8ae'%20or%20one%20of%20its%20dependencies.%20The%20system%20cannot%20find%20the%20file%20specified.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhat%20I%20found%20was%20maybe%20the%20assembly%20dll%20where%20not%20signed.%20So%20i%20followed%20this%20article%20to%20sign%20the%20dlls.%3CBR%20%2F%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fvisualstudio%2Fsharepoint%2Fhow-to-mark-controls-as-safe-controls%3Fview%3Dvs-2019%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fvisualstudio%2Fsharepoint%2Fhow-to-mark-controls-as-safe-controls%3Fview%3Dvs-2019%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3EHowever%20I%20still%20get%20the%20errors.%20Here%20my%20setting%20on%20how%20i%20sign.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Jseb04_0-1627396629019.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F298696i090037FCC32F9BC2%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Jseb04_0-1627396629019.png%22%20alt%3D%22Jseb04_0-1627396629019.png%22%20%2F%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Jseb04_1-1627396650864.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F298697iC2B8039E289AB346%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Jseb04_1-1627396650864.png%22%20alt%3D%22Jseb04_1-1627396650864.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20lost%2C%20and%20not%20sure%20what%20else%20to%20do.%3C%2FP%3E%3C%2FLINGO-BODY%3E
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