I'm trying to set a breakpoint in the source code for MVC 4.
Here are the steps I took:
sn -Vr *
Still, when I run it I get the error about the assembly signing. I admit I have never had to do much with assembly signing - but from what I understand the sn
command disabled that.
Any suggestion on how I can go about successfully setting it up so I can step through the code?
Error I'm getting:
Could not load file or assembly 'System.Web.Mvc' 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)
Is the the "one of its dependencies" part that is screwing me up maybe? Am I making a wrong assumption maybe that I can just reference one of the locally built assemblies? (I'm just guessing)
The build instructions mention downloading and running (from an elevated command prompt) SkipStrongNames -e
, the executable being available here.
However, I think it's more useful to be able to debug the framework and third-party libraries right in your project, without having to mess with the source of those libraries. You just need the debug symbols and to configure VS accordingly. Regarding symbol servers, if you can, I'd start using symbolsource.org for better coverage.
User contributions licensed under CC BY-SA 3.0