Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't seems to use the package in 4.7.1 with strong naming issue #7

Open
MarcelRoozekrans opened this issue Jan 24, 2019 · 11 comments
Open

Comments

@MarcelRoozekrans
Copy link

MarcelRoozekrans commented Jan 24, 2019

Trying to use the package in a 4.7.1 webproject but it complains about the Signing is not properly done.

Could not load file or assembly 'HTTPlease.Core, Version=1.8.3.0, Culture=neutral, PublicKeyToken=c0c32743f5b607c9' 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)

@tintoy
Copy link
Owner

tintoy commented Jan 24, 2019

Hi - sorry, I’m overseas for the next couple of days but I’ll give this a look as soon as I get back!

@tintoy
Copy link
Owner

tintoy commented Jan 24, 2019

Just off the top of my head, which feed did you use to obtain this package?

@MarcelRoozekrans
Copy link
Author

MarcelRoozekrans commented Jan 24, 2019

NuGet its s dependency of the kubeClient also created by you. Could be issue when signing with old cli version: https://github.com/dotnet/cli/issues/720

@tintoy
Copy link
Owner

tintoy commented Jan 24, 2019

Odd - sorry about that, will look into it as soon as I get get back to a computer !

@tintoy
Copy link
Owner

tintoy commented Jan 24, 2019

Yeah, will try building HTTPlease with the latest SDK to see if that fixes the problem :)

@MarcelRoozekrans
Copy link
Author

@tintoy Do you have an update ?

@tintoy
Copy link
Owner

tintoy commented Jan 28, 2019

Hi - I’m flying home tomorrow afternoon. As soon as I get home (where my laptop is), I’ll get onto fixing this. Sorry for the delay, but I’m overseas at the moment and don’t have a computer with me :)

@tintoy
Copy link
Owner

tintoy commented Jan 28, 2019

If you need packages sooner than that, you can fetch the repository, delete global.json, and run build-ci.ps1 which will produce packages using the latest SDK you have.

@MarcelRoozekrans
Copy link
Author

For now disabled siging and made own build. I can't get the signing properly working because I lack the private key. Seems that the assmebly is signed with only the public part of the key and signing process.

@tintoy
Copy link
Owner

tintoy commented Jan 30, 2019

That's weird - the strong name key we use is included here in the repository. Can you tell me about the problem you had getting it to build with strong-naming enabled?

I finally got a chance to try downloading the package myself, and every test I've done so far claims that the assembly signature is valid. Could the cached package files for HTTPlease.Core (i.e. in your NuGet cache directoryt) have become corrupt or something along those lines?

I'll zip up and include my demo project so you can try it out if you like.

@tintoy
Copy link
Owner

tintoy commented Jan 30, 2019

Here's the demo project I've been working with. Targets .NET 4.7.1 using the old-style project system, referencing HTTPlease and KubeClient NuGet packages. Can you try building and running it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants