n this article I wanted to focus on Visual Studio 2010 feature allowing to deploy SharePoint 2010 solutions right to the portal. However, if you haven’t configured your development environment properly – you will run into issues. Here I’m talking about the following error:
Error occurred in deployment step ‘Recycle IIS Application Pool’: The local SharePoint server is not available. Check that the server is running and connected to the SharePoint farm.
Or this:
Error occurred in deployment step ‘Recycle IIS Application Pool’: Cannot connect to the SharePoint site: http://localhost/. 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
Visual studio uses the following process to deploy your solution: vssphost4.exe
Open your task manager and find the process in the list; take a note of the User Name under which this process is running, let’s say it’s myadmin_account
Now, open your SQL Management Studio and ensure this Username is added as a DBOWNER to the following databases:
SharePoint_Config
SharePoint_AdminContent_[guid]
SharePoint Site Content DB
sql permissions
Close and Open your Visual Studio again, this will ensure the service is recycled; this should fix above deployment error. If you’re still having same issue, End the process in taskmanager and then re-start VS 2010.
Good luck!
http://www.sharemuch.com/2010/03/19/resolving-vs-2010-solution-deployment-issues-for-sharepoint-2010-projects/
*********************************************
Starting develop on SharePoint 2010 through the tool for developers offer by Visual Studio 2010, you will most certainly face the following problem.
Moving a Visual Studio project from an environmente to another one and try to re-compile the solution, the Microsoft IDE will complete as expected the compilation phase and the package creation, but it fails during the deployment of your SharePoint solution. The generated generated error, will be..
Error occurred in deployment step 'Recycle IIS Application Pool': Cannot connect to the SharePoint site: http://YOUR_SITE_NAME/. 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.
This is because, when we create a new SharePoint project, Visual Studio asks us the URI of a valid SharePoint web application in which deploy and save that URI into project properties. Moving the solution and all project files you must update manually that address.
To do it, you have to select the project from the "Solution Explorer" toolbox and then open the property toolbox. Over there you'll find a property called "Site URL", which must be changed with the new address of your new SharePoint 2010 web application.
Take care to open the property toolbox (visible in figure) and NOT the project property using a right click of the mouse.
http://www.dev4side.com/community/blog/2010/2/28/error-occurred-in-deployment-step-%27recycle-iis-application-pool%27.aspx
No comments:
Post a Comment