aspnet / WebHooks

[Archived] Libraries to create and consume web hooks on ASP.NET Core. Project moved to https://github.com/aspnet/AspLabs
Apache License 2.0
627 stars 439 forks source link

Debugging with Source and Symbols is not working #92

Closed garora closed 6 years ago

garora commented 7 years ago

Documentation is sufficient to setup repository to work local here is the link: Debugging with Source and Symbol. After following all steps, I tried to run Bitbucket receiver sample. Unfortunately, after several tries I am getting exception 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)

Any help on this will be highly appreciated.

Update (on Sept 09, 2017): Updated link for ASP.NET WebHooks debugging.

Note: Issue#62 does not work for me.

HenrikFrystykNielsen commented 7 years ago

ok, will have a look.

garora commented 7 years ago

@HenrikFrystykNielsen - I am still facing this issue. Any alternatives to this till we got a solution of this issue?

HenrikFrystykNielsen commented 7 years ago

I also can't make it work -- trying to ask the VS guys about what might be going on.

garora commented 7 years ago

Thanks, looking forward a positive response 👍

garora commented 7 years ago

Any response from VS guys on this? This looks like showstopper for development

garora commented 7 years ago

@HenrikFrystykNielsen - any updates on this? Still getting same issue even on a new dev box.

LuisPignataro commented 7 years ago

Same problem Here!! Any WorkAround?

garora commented 7 years ago

@LuisPignataro - No, its not at our end. I hope this issue will resolve sooner.

garora commented 7 years ago

@HenrikFrystykNielsen - any news on this front?

PoulTur commented 7 years ago

I ran across same issue today.

garora commented 7 years ago

@PoulTur - Still waiting on it.

PoulTur commented 7 years ago

@garora Actually all went ok, by just importing the Webhooks package to a fresh solution and then copying the code from sample project.

garora commented 7 years ago

@PoulTur - nice to hear that. But, actual issue was something related to DEBUG symbols.

garora commented 7 years ago

Still facing same issue even on clean install on new box.

garora commented 7 years ago

What is the best way to connect with VS guys?

dougbu commented 6 years ago

Discussions about symbol servers, inclusion of symbols in released packages, and source linking for .NET are ongoing. The plan is for WebHooks packages to take the same approaches in our next release.

In the meantime however, we'll investigate.

garora commented 6 years ago

I will be start working on #15 as soon as the aforesaid issue get resolved.

dougbu commented 6 years ago

I tested breakpoints in my handler, function breakpoints e.g. on Microsoft.AspNet.WebHooks.BitbucketWebHookReceiver.ReceiveAsync(...), and moving around from each. I also did similar testing with a Stripe handler. Other than landing in disassembly instead of source code when using function breakpoints, I didn't hit any snags. (I could reach source for the same classes navigating in the call stack from other breakpoints.) I even debugged a Release handler and lost only a few locals.

Deploying to Azure (regular Publish from Visual Studio 2017), using Application Insights (see https://docs.microsoft.com/en-us/azure/application-insights/app-insights-asp-net), and debugging (see https://docs.microsoft.com/en-us/aspnet/webhooks/diagnostics/debugging) all seems fine. In particular the http://srv.symbolsource.org/pdb/Public symbol server worked well.

What exactly is failing for others these days? I'm wondering if for example older Web API templates configured handler applications differently. Or I may not have tried the actions others have had problems with.

dougbu commented 6 years ago

@garora what exactly is blocking work on #15? That is, what debugging aspect isn't working for you?

garora commented 6 years ago

@dougbu - Thanks for the heads up on the issue. I will try to replicate the same in couple of ours from now and will be keep here posted.

garora commented 6 years ago

@dougbu - Now, its working for me as well. I will start work and make PR . You can close this issue.

dougbu commented 6 years ago

Something external likely changed. Issue is no longer valid.