Weird issue I can't seem to figure out "Strong name signature could not be verified."

I've been looking around a lot on google trying to find out how I can resolve this but I cant find anything useful I tried to reinstall Consul via nuget but it had no effect :/ this is the error:
Server Error in '/' Application.
Could not load file or assembly 'Consul' 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)
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.IO.FileLoadException: Could not load file or assembly 'Consul' 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)

Source Error:
Server Error in '/' Application.
Could not load file or assembly 'Consul' 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)
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.IO.FileLoadException: Could not load file or assembly 'Consul' 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)

Source Error:
Not sure what other information to provide to you guys if you need to know anything else please let me know!
6 Replies
ZacharyPatten
ZacharyPatten14mo ago
Is your code open source? If yes please link it
𝔁𝓓𝓮𝓜𝓸𝓝 𝓢𝓵𝓪𝓨3𝓡!𝔁
Unfortunately it isn't but I can provide as much information as possible just ask whatever you need to know
𝔁𝓓𝓮𝓜𝓸𝓝 𝓢𝓵𝓪𝓨3𝓡!𝔁
I'm still unsure why this happens I've tried to upgrade and reinstall Consul but still no changes at all
JakenVeina
JakenVeina14mo ago
the error is mildly self-explanatory the strong-name signature is somehow bad or corrupt on an assembly probably Consul that's your main project assembly, I'll guess? if not, then you've got a bad copy of the file, or it's the publisher's problem
𝔁𝓓𝓮𝓜𝓸𝓝 𝓢𝓵𝓪𝓨3𝓡!𝔁
yeah I think this is what happened I got another copy of the dll which was a few days older but same version and it managed to work fine I'll close this now