SharePoint -how to connect remotely to production server

sharepoint

I am new to SharePoint development and have a question.

I got that SharePoint development could be 1. artifact-based and 2. assembly-based. Also, artifact-based is done with Designer and supports remote connection to the production server.

But what about assembly-based development -done with Visual Studio? Do we need to "copy" the required files from the production server to development server? Or is there any "hack" to connect remotely to production server with Visual Studio?

Thank you for your help.

Bruno.

Best Answer

While it is possible to compile locally and debug remotely, it is not the easiest solution and just doesn't work if you use Visual Studio Sharepoint Extensions - they don't work unless you have Sharepoint installed locally.

To compile an assembly that references Sharepoint assemblies all you have to do is copy them to your local machine and reference them from your project. To debug remotely you have to install and configure Visual Studio Remote Debugger on your test server. To deploy the dlls to the test server you can just copy them to the \Windows\Assembly folder and run iisreset. Then, hit your Sharepoint home page and once the page appears, attach remotely to all w3wp.exe processes on the test machine.

Remote debugging can be tricky as many times you will not be able to connect to the test server at all. On the other hand, if your local machine is not strong enough to handle both Sharepoint and Visual Studio, this may be the only option that will preserve your sanity.

Related Topic