Trouble with strong name #152
Replies: 3 comments 3 replies
-
|
Beta Was this translation helpful? Give feedback.
-
In order for the file to load properly and not result in the |
Beta Was this translation helpful? Give feedback.
-
This is an old thread, but just incase someone else runs into this. You might need to have a dll that has a strong name but modern net (3.5 SP1 and higher) can be configured (and is by default) to not verify many signatures as long as the files are in the right place. https://learn.microsoft.com/en-us/dotnet/standard/assembly/disable-strong-name-bypass-feature talks about it a bit. |
Beta Was this translation helpful? Give feedback.
-
Hello,
I have an dll that is loaded by an application like a plugin. Unfortunately the plugin dll has a bug. It is also no longer maintained (By Microsoft) and I don't have the code.
I found dnSpy and can load the assembly, I make the change (adding a single substring call to a function) and I save it.
The program (mim2016) refuses to load the new patched assembly with an error in eventlog
"Could not load file or assembly 'Microsoft.Azure.ActiveDirectory.Connector, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. Strong name signature could not be verified. The assembly may have been tampered with, or it was delay signed but not fully signed with the correct private key. (Exception from HRESULT: 0x80131045)
It was certainly tampered with -> by me. I am no hacker. Any advise/tips out there for how I can get the application to load the assembly with modifications.
I tried googling it, but the information confuses me greatly. Should I just remove the SN (snremove)? I tried somthing with SN.exe -Vr but that changed little.
Beta Was this translation helpful? Give feedback.
All reactions