Breakpoint debugging issues in SharePoint
This is another unusual debugging behavior in VS.NET. This post is related to debugging SharePoint event receiver code in VS.NET. The process of deployment is debug the code and copy the assembly code into GAC ASSEMBLY directly (i.e. Start >> Run >> write ASSEMBLY and press enter).
Debugging was working fine as usual in .NET and simply attached the host process w3wp.exe, F10 and F11 are perfectly working. At some point of time, debugging was not responding and the following error was being displayed:
The breakpoint will not currently be hit. No symbols have been loaded for this document.
My initial thought might need to reset the IIS. But that didn’t work for me. I have checked the Project and solution file by following the steps:
1) Stopped debugging and closed the project
2) Open the project again
3) Go to build configuration manager and checked the whether active solution is in debug mode
4) Checked also the project configuration column. It also needs to be in Debug state.
For the next level investigation, go to the assembly folder and I have found there were two DLL resides. Confused
. Deleted those DLLs from GAC and executed a fresh build.
Next follow the steps below:
1) Closed the solution
2) Reset IIS
3) Open the solution and rebuild the project
4) Deploy the DLL into GAC
5) Open the SharePoint URL in the IE
6) Attached the w3wp.exe in debugger
However this may not be cause for everyone, however, I believe this will help you to eliminate debug issue.


