Strong name signature could not be verified.
See original GitHub issueHello,
I am trying to attach playwright 0.180.0 into my existing project on .Net Framework and I am receiving following error when trying to execute some basic test:
Error message:
System.IO.FileLoadException : Could not load file or assembly 'PlaywrightSharp, Version=0.180.0.0, Culture=neutral, > > PublicKeyToken=db12f80f85d8ba23' 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)
Sample code:
[Fact]
public async Task Test1()
{
IPlaywright playwright = await Playwright.CreateAsync();
PlaywrightSharp.Chromium.IChromiumBrowser browser = await playwright.Chromium.LaunchAsync();
var page = await browser.NewPageAsync();
await page.GoToAsync("http://www.bing.com");
await page.ScreenshotAsync(path: "");
}
It will be cool to give it a try. 😉
Issue Analytics
- State:
- Created 3 years ago
- Comments:27 (14 by maintainers)
Top Results From Across the Web
How to Fix, Could not load file or assembly 'XXX' or one of ...
How to Fix, Could not load file or assembly 'XXX' or one of its dependencies. Strong name signature could not be verified ·...
Read more >[BUG] Strong name signature could not be verified #1767
I managed to locate the cause of the signing failing. It is 100% human error obscured by incremental builds. The cause of the...
Read more >How to: Disable the strong-name bypass feature | ...
When you override the bypass feature, the strong name is validated only for correctness; it is not checked for a StrongNameIdentityPermission.
Read more >The "Could not load file or assembly 'X' or one of its ...
Strong name signature could not be verified. The assembly may have been tampered with, or it was delay signed but not fully signed...
Read more >Debugging Microsoft assemblies? Disable strong signing first
Woohoo, lets debug open source projects with strong signed assembliesWhile experimenting ... Strong name signature could not be verified.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@SimonCropp Indeed, we use
PublicSign
.sn
will return an error, however, the relevant bit is set and the assembly is marked as signed, which you can verify:Technically, for OSS projects, this seems to be the way to go. However, the following is called out as a problem:
I wonder if any of the above might be the cause of the validation error @12masta was seeing though?
Closing this issue for now, as the original problem is fixed. Feel free to open new issues, if you encounter them.