locked
Error occurred in deployment step 'Retract Solution': Cannot connect to the SharePoint site RRS feed

  • Question

  • I have problem when tried to deploy my sandbox solution to my development SharePoint Server.

    The message is shown as below

    Error 1 Error occurred in deployment step 'Retract Solution': Cannot connect to the SharePoint site: http://portaltest.xxx.com/. 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 DeltaSPDWebParts

    Even though the “Microsoft SharePoint Foundation Sandboxed Code Service” is started, the problem is still there.

    Friday, July 27, 2012 6:30 PM

Answers

  • Hi DPCSP,

    Possible reasons for the error you mentioned above could be any of the following:

    Cause 1 : 'http://portaltest.xxx.com/' is not url of your SharePoint site on the SharePoint server

    This can be fixed by changing the site url from properties tab of your project.

    STEPS TO FIX : In Solution Explorer in Visual Studio -> Click to select the project -> Then press F4 -> The properties window will appear -> Then change the existing Site URL from 'http://portaltest.xxx.com/' to the actual url of your SharePoint site (say http://sharepointserver).

    ChangeSiteUrlPropertyInVS2010

    Cause 2 : You are not having Administrator privileges on your system.

    This issue can be fixed as follows:

    (a) Added myself as the administrator
    (b) Added myself to SharePoint Farm Admin Group
    (c) Provided DB Owner access to SharePoint Content DB

    References : http://msmvps.com/blogs/sundar_narasiman/archive/2011/02/17/recycle-iis-application-pool-cannot-connect-to-the-sharepoint-site.aspx

    Hope this hepls to solve your problem.

    Regards,
    Devang Bhavsar

    • Edited by Devang Bhavsar Friday, July 27, 2012 7:26 PM Added image to the description
    • Marked as answer by star.wars Monday, August 6, 2012 2:19 AM
    Friday, July 27, 2012 7:08 PM

All replies

  • Hi,

    Make sure the site URL is correct in the project property.

    Also the account which you are using to deploy the solution should have access to the sharepoint farm.

    Thanks,

    Sudan

    Friday, July 27, 2012 7:03 PM
  • Hi DPCSP,

    Possible reasons for the error you mentioned above could be any of the following:

    Cause 1 : 'http://portaltest.xxx.com/' is not url of your SharePoint site on the SharePoint server

    This can be fixed by changing the site url from properties tab of your project.

    STEPS TO FIX : In Solution Explorer in Visual Studio -> Click to select the project -> Then press F4 -> The properties window will appear -> Then change the existing Site URL from 'http://portaltest.xxx.com/' to the actual url of your SharePoint site (say http://sharepointserver).

    ChangeSiteUrlPropertyInVS2010

    Cause 2 : You are not having Administrator privileges on your system.

    This issue can be fixed as follows:

    (a) Added myself as the administrator
    (b) Added myself to SharePoint Farm Admin Group
    (c) Provided DB Owner access to SharePoint Content DB

    References : http://msmvps.com/blogs/sundar_narasiman/archive/2011/02/17/recycle-iis-application-pool-cannot-connect-to-the-sharepoint-site.aspx

    Hope this hepls to solve your problem.

    Regards,
    Devang Bhavsar

    • Edited by Devang Bhavsar Friday, July 27, 2012 7:26 PM Added image to the description
    • Marked as answer by star.wars Monday, August 6, 2012 2:19 AM
    Friday, July 27, 2012 7:08 PM