Can we debug a SP 2010/2013 custom solution like Visual Web Part on a different SharePoint site which is not available on local machine but on a different SharePoint server? I tried to put a site as shown below in image for debugging and this site is not available locally but on a different SharePoint server.

enter image description here

  • 1
    Take a look here: sharepoint.stackexchange.com/questions/25719/… – Cecilia Jan 18 '17 at 13:38
  • @Cecilia correctly answered your question. One addition though, when you attach to process you will halt the w3wp.exe process. So be careful if you're doing it on production environment on business hours. – Slaven Semper Jan 18 '17 at 14:57
  • But how can we overcome above exception thrown? Why doesn't it allowed to put different SharePoint site than local site? – Zakir HC Jan 19 '17 at 5:24

Finally I have come up with a solution to the above exception. Yes we can overcome the above exception and can locally create SharePoint Solution without having SharePoint locally installed and can remotely debug through a local machine.

I have posted detailed step on my blog:

Remote Debugging a SharePoint 2013 Farm Solution in Visual Studio 2013

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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