1

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.

2
  • 2
    Did you build the solution in Release? If so, there is your problem Aug 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 2

1

As far as I can think, there can be 3 reasons.

  1. SharePoint might run under different user. So check all processes from all users and attach to all w3wp.exe processes.
  2. You could have made a Sandboxed Solution. In that case, it should be attached to SPUCWorkerProcess.
  3. You could be debugging a timerjob. In case, that should be attached to OWSTIMER.exe process.
1
  • Thank you I have chosen sandboxed solution. I didn't notice that. Aug 22, 2014 at 15:35
1

1.Attach to all the w3wp process or in webcofig

<compilation debug="true">
1
  • 1
    It was sandbox solution option selected. Thank you. Aug 22, 2014 at 15:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.