Deploy sharepoint 2010 event receiver using visual studio 2010 to another server
-
Friday, February 24, 2012 4:57 AM
Hi,
I am trying to deploy a list event receiver that I have written for a sharepoint list to another server and it fails giving the following error:
Error 3 Error occurred in deployment step 'Recycle IIS Application Pool': Cannot connect to the SharePoint site: http://noucsapp62/. Make sure that this is a valid URL and the SharePoint site is running on the local computer. If you moved this project to a new computer or if the URL of the SharePoint site has changed since you created the project, update the Site URL property of the project.
0 0 CalendarJobMy question is how can I deploy to another server if I have visual studio installed on one machine and sharepoint on the other. I do not want to package and deploy as I do not have administrator permissions on the sharepoint server but I am a site collection administrator.
Is there any way to do this?
All Replies
-
Friday, February 24, 2012 5:02 AM
Simply copy the solution package which is in the debug/bin or release/bin folder of your project and copy it to the SharePoint server.
There you can deploy the wsp(solution package) using powershell.
http://www.wssdemo.com/Lists/PowerShell/DispForm.aspx?ID=6
And then deploy it to individual web applciationf rom central admin or powershell
http://technet.microsoft.com/en-us/library/ff607534.aspx
Varun Malhotra
=================
If my post solves your problem could you mark the post as Answered or Vote As Helpful if my post has been helpful for you. -
Friday, February 24, 2012 7:18 AM
Hi,
In your case, you can gor for SandBox solutions. You can create your event handler inside a sandbox soln in visual studio. This also produces WSP inside your bin folder. This can be deployed by a site collection admin from a remote machine.
Following link will help you in developing, deploying sandbox solutions,
http://msdn.microsoft.com/en-us/magazine/ee335711.aspx
Sathish
-
Monday, February 27, 2012 7:56 AM
Hi Graham,
Thanks for your post!
Deploy a Sharepoint solution directly from Visual Studio is just be used for development and debug purpose and Visual Studio can just deploy the solution to a local Sharepoint.
To deploy a solution in a another server, you should use wsp file.
For a farm level solution, this requires farm administrator permission, for more information, please refer to:
http://msdn.microsoft.com/en-us/library/aa544500.aspx
For a sandboxed solution, this require site administrator permission, for more information, please refer to:
http://msdn.microsoft.com/en-us/magazine/ee335711.aspx
Thanks,
SimonSimon Huang
TechNet Community Support
- Marked As Answer by Shimin Huang Friday, March 02, 2012 1:54 AM

