Skip to content
This repository was archived by the owner on Oct 18, 2018. It is now read-only.

Error when running the sample of generic receiver #125

Closed
Mazenx opened this issue Mar 20, 2017 · 2 comments
Closed

Error when running the sample of generic receiver #125

Mazenx opened this issue Mar 20, 2017 · 2 comments

Comments

@Mazenx
Copy link

Mazenx commented Mar 20, 2017

Hello,
I made a change that I dont want the generic json receiver to check for the code parameter in the url , but when ever I am trying to deploy the new dll's to my app I am getting this error
"Could not load file or assembly 'Microsoft.AspNet.WebHooks.Common' 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)"

so I decided to run the original genericreceiver in the samples , and apparently the original one is also having the same error , any ideas?

This is the change I made by commenting these lines

    if (string.IsNullOrEmpty(code))
            {
                //string msg = string.Format(CultureInfo.CurrentCulture, ReceiverResources.Receiver_NoCode, CodeQueryParameter);
                //request.GetConfiguration().DependencyResolver.GetLogger().Error(msg);
                //HttpResponseMessage noCode = request.CreateErrorResponse(HttpStatusCode.BadRequest, msg);
                //throw new HttpResponseException(noCode);
            }
@HenrikFrystykNielsen
Copy link
Contributor

If you run the code directly from the repo then you have to run this from a command prompt from the root of the repo:

build.cmd EnableSkipStrongNames

Hope this helps

@dougbu
Copy link
Contributor

dougbu commented Nov 22, 2017

Question has been answered.

@dougbu dougbu closed this as completed Nov 22, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants