Share via


Error occurred in deployment step 'Recycle IIS Application Pool': Cannot connect to the SharePoint site:

Question

Tuesday, March 13, 2012 1:14 PM

hi,

When i deploy my project to the working share point site using visual studio 2010.I am getting below error.Any suggestion/Approach could be great.

Error occurred in deployment step 'Recycle IIS Application Pool': Cannot connect to the SharePoint site: http://dev:1234/. 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.
    

Thanks & Regards, Krishna

All replies (10)

Monday, July 23, 2012 7:52 AM âś…Answered | 6 votes

Hi

Please make sure following things are taken care of 

1) Current logged  in user is in Administrator group of SharePoint server.

2)Current logged user has db_owner permission for Content Database  of the site you are trying to deploy .

3) SharePoint site URL is mentioned in visual studio .

also if you are getting the error "Error occurred in deployment step 'Recycle IIS Application Pool': <nativehr>0x80070005</nativehr><nativestack></nativestack>Access denied."

follow below mentioned  steps

Go to Central Administration site and navigate to the Manage Web Applications page.Click on the web application that hosts the site you are trying to deploy to and then click the User Policy ribbon item. **Finally, simply add your windows account to the list of users with the Full Control permission. **

Hope this will work to resolve this issue ..


Tuesday, March 13, 2012 1:16 PM

**http://Moss:1122/ is your local machine address?
**

[custom.development]


Tuesday, March 13, 2012 1:19 PM

site address will be like below:

http://dev:1234/

Thanks & Regards, Krishna


Tuesday, March 13, 2012 1:45 PM | 2 votes

Had this a few times. Normally a restart of Visual Studio and reload of the project does the trick. Also ensure that the deployment path in Visual Studio is the correct path.

Liam


Tuesday, March 13, 2012 1:47 PM

I done the same earlier even by restarting my machine.But no Luck for me..

Thanks & Regards, Krishna


Tuesday, March 13, 2012 2:11 PM

What's project type do you use?

[custom.development]


Tuesday, March 13, 2012 2:17 PM

empty Sharepoint project template.

Thanks & Regards, Krishna


Tuesday, March 13, 2012 2:20 PM | 2 votes

Hi,

Go to local services with "services.msc" command and check whether "SQL server agent" service is up and running for SharePoint.

Regards


Wednesday, August 21, 2013 6:25 PM | 1 vote

In my situation:

I use ip address to visit SP server, like http://192.168.9.46

I got same error like you, cannot connect to the sharepoint site...

I add the ip address as an Internal URLs in

Central Administrator-->System Settings-->Configure alternate access mappings

it worked, attention a lot of SharePoint error related to the alternate access mapping

Hope will help you

Philips Gao


Wednesday, May 7, 2014 7:47 AM

Hi 

There i have two site at web application lists:

SharePoint - 80  http://windows-123/ 80

SharePoint Central Administration v4  http://windows-123:19819/  19819

when i click first application , i can open the 'user policy' ribbon, but when i click the second , the 'user policy' ribbon is disabled, could you tell me how to set it then i can edit the 'user policy' ribbon when i click the second application(http://windows-123:19819/). Thanks!