I created a SharePoint solution using visual studio and attached it to the w3wp.exe process. I cannot debug although I have put many breakpoints all around the code. I am running Visual studio as administrator as well.
-
2Did you build the solution in Release? If so, there is your problem– Robert LindgrenAug 22, 2014 at 13:56
-
try rebuilding, redeploying the DLL, iis reset. and when you attach it to a process, tick both checkboxes and click refresh, then attach it to all w3wp.exe– Waqas Sarwar MVP ♦Aug 22, 2014 at 14:48
2 Answers
As far as I can think, there can be 3 reasons.
- SharePoint might run under different user. So check all processes from all users and attach to all w3wp.exe processes.
- You could have made a Sandboxed Solution. In that case, it should be attached to SPUCWorkerProcess.
- You could be debugging a timerjob. In case, that should be attached to OWSTIMER.exe process.
-
Thank you I have chosen sandboxed solution. I didn't notice that. Aug 22, 2014 at 15:35
1.Attach to all the w3wp process or in webcofig
<compilation debug="true">
-
1