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

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

Hi
This is an issue with the permissions. Check this link
http://www.spdoctor.net/Pages/message.aspx?name=Error-occurred-in-deployment-step-Recycle-IIS-Application-Pool
http://stackoverflow.com/questions/7417046/vs2010-error-in-recycling-iis-application-pool-not-found
Thanks
Girish

Similar Messages

  • Error occurred in deployment step 'Recycle IIS Application Pool': Could not load file or assembly 'Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The system cannot find the file specif

    Hi All,
    I am using Virtual box to connect to Sharepoint 2013 VPC. Due to an unexpected sutdown of my machine the VPC got some issue. Now I restored it using my bak up file. But after this when I deploy my sharepoint 2013 farm solution Iam getting the following error.
    Error occurred in deployment step 'Recycle IIS Application Pool': Could not load file or assembly 'Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The system cannot find the file specified..
    Editing the web.config and adding dependentAssembly didnt worked for me.
    What could be the issue? Any suggestions ?
    Thanks in advance...
    Regards
    Nimisha
    [email protected]

    Hi,
    Please try to do as follows:
    1. Check your farm solution whether reference the Microsoft.SharePoint.dll. Or try to add the Microsoft.SharePoint.dll into the bin folder.
    2. Execute the iisreset command.
    3. Create a new farm solution and check whether the issue still occurs or not.
    Best Regards
    Dennis Guo
    TechNet Community Support

  • Error occurred in deployment step 'Recycle IIS Application Pool'

    Currently i’m working on a development machine for SharePoint 2010. Even the development machine is setup with multiple accounts as security describes. Therefore sometimes you run into strange (security) error messages. The following error message
    occured when i tried to deploy a SharePoint project from Visual Studio 2010.
    Error occurred in deployment step ‘Recycle IIS Application Pool’:
    <nativehr>0×80070005</nativehr><nativestack></nativestack>Access denied
    It seems that the account under which your Visual Studio 2010 is running needs to have sufficient rights on the web application to which you are deploying your solution. In my case this was easily fixed by putting my domain account in the site collection
    administrators list for that specific web application.

    Hi vishal,
    The root cause of the issue is
    You don't have IIS restart privilege on windows OS
    Even if you have it, you have not added your login account in to SharePoint sitecollection administrator.
    To solve the issue
    To see whether you have privilege or not, you can open a command prompt and type "IISReset". 
    If you able to restart, then it will restart successfully otherwise it will deny it.  The reason is, Though you are in administrators group, windows 2008 will not run on the administrator privilege. Every time when you do an operation like IIS
    restart or Installation, it will prompt for UAC (User Account Control). You should accept the dialog box and elevate the privilege to run the operation. 
    Or you can right click the application whatever you want to run and click the menu option "Run as Administrator" which will solve the issue.
    If you want to avoid UAC and directly run through you admin account then, go to Control panel -> Manage account -> Hide UAC
    Second if you have all the privilege and still you are getting error in VS2010 as "'Recycle IIS Application Pool':0x80070005Access denied, then you have to add your account in to site collection admin.
    1) You can do this by going to sharepoint administration page.
    2) Navigate to the site collection administration option
    3) Add your name into site collection administrator as a second owner. SharePoint will allow a second owner for site colleciton
    For more informaion, please refer to:
    http://blogs.msdn.com/b/suresh/archive/2011/01/01/recycle-iis-application-pool-0x80070005-access-denied-deploying-sharepoint-solution-iis-restart-issue.aspx
    Thanks,
    Simon

  • Error occurred in deployment step Recycle IIS Application Pool - migration 2010 to 2013

    Hello
    When I upgraded my solution from 2010 to 2013 and tried to deploy got the following error
    Error occurred in deployment step 'Recycle IIS Application Pool'
    Any idea ?
    Thanks
    Momo

    Hi  Momo,
    Thank you very much for sharing your solution here. It  would be helpful for others who encounter similar issue.
    Thanks again,
    Eric
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support,
    contact [email protected]
    Eric Tao
    TechNet Community Support

  • Error occurred in deployment step 'Recycle IIS Application Pool': Object reference is not set to an instance of a object.

    Hello, 
    When I do a deploy from VS2012 I get the error above. 
    Specifications: 
    - User is Farm Admin
    - User is Site Collection Admin
    - User is added with full control to the Web application user policy
    - User is db_owner of the content db, config db, admin content db
    - User Access Control is disabled
    - User is Local administrator
    - User is a member of WSS_ADMIN_WPG
    - host name is added to the host file.
    Somebody has a solution?

    almost you have everything, did you try to close the visual studio and start "Run as administrator". if not do it and try to redeploy.
    I would also check if the Sharepoint Timer Services and Sharepoint administration Services running on all sharepoint server(via services console.)
    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog

  • Error occurred in deployment step 'Activate Features':EXCEPTION HAS BEEN THROWN BY THE TARGET OF AN INVOCATION?

    Hi All,
    While building event handler to call webservice facing "Error occurred in deployment step 'Activate Features':EXCEPTION HAS BEEN THROWN BY THE TARGET OF AN INVOCATION"; If comment webservice, then build successfully. How to fix this issue?
    Thanks in advance!

    hi
    if you call WCF service in feature event receiver you need to ensure that proxy is properly configured. In most cases proxy is configured via web.config file using <system.serviceModel> section, but if it is used in feature receiver it depends on how
    you activate the feature:
    1. if feature is added to onet.xml of custom web template which is used for creating site collection from Central Administration you will need to modify web.config file of CA
    2. similar to previous but instead of site collection you try to create sub site using custom web template: in this case you will need to modify web.config of your Sharepoint web application
    3. if you activate feature from timer job somehow, you will need to modify owstimer.exe.config
    4. if you activate feature form powershell, most probably you will need to modify or create powershell.exe.config, but I didn't try it
    The most simple way which will work in all cases is to configure WCF proxy programmatically. See the following forum thread for details:
    How can I set an HTTP Proxy (WebProxy) on a WCF client-side Service proxy.
    Blog - http://sadomovalex.blogspot.com
    Dynamic CAML queries via C# - http://camlex.codeplex.com

  • Error occurred in deployment step 'Add Solution': Specified argument was out of the range of valid values.

    I was trying to deploy my solution thru Visual studio then  iam getting an eror saying "error occurred in deployment step 'Add Solution': Specified argument was out of the range of valid values." but its not displaying which argument is out
    of range. I am not getting any error when i buil the solution. Build was succussfull.  I am able to succussfully deploy manually if take the .WSP from bin folder and deploy manually using stsadm command. the issue with that is if i want to dubug
    i am not able to do that.
    what could be the issue and where.

    what is the content of that feature ? is that a master page? just a normal feature?
    is there any dependencies on that feature ? did u get any errors in the event viewer ? 
    Subhash

  • "Recycle IIS Application Pool" error while deploying solution using Visual Studio

    Hi All,
    I am getting below error while deploying solution from Visual Studio. I have verified the URL and its okay and site is also up and running and accessible.
    Error 1 Error occurred in deployment step 'Recycle IIS Application Pool': Cannot connect to the SharePoint site:
    http://portal/sites/site1/. 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.
    Suggest some solution.
    Thanks in advance. 

    Hi,
    Please  do/Validate the below things..
    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 .
    http://www.sharemuch.com/2010/03/19/resolving-vs-2010-solution-deployment-issues-for-sharepoint-2010-projects/
    and also
    Do a IIS reset
    Check if IIS is resetting.
    If it is not, then disable UAC from control panel and IIS reset will work.
    Go to Central Administration site
    Navigate to the Manage Web Applications page
    Click on the web application that hosts the site you are trying to deploy to
    Click the User Policy ribbon item.
    Add your windows account to the list of users with the Full Control permission.
    Don't forget to mark it as an Answer if it resolves your issue and Vote Me as helpful if it useful.
    Mahesh

  • Error occurred in deployment step 'Activate Features': Feature 'myfeature guid' is Site-scoped, and cannot be added to the Web.

    Error occurred in deployment step 'Activate Features': Feature 'e3d788e6-994d-446c-afbb-25ecf9907aeb' is Site-scoped, and cannot be added to the Web.
    ========== Build: 1 succeeded, 0 failed, 1 up-to-date, 0 skipped ==========
    ========== Deploy: 0 succeeded, 1 failed, 0 skipped ==========
    Hi,
     I have added a new eb part in my already existing SP solution.  but when I added 2 new web parts into this solution and trying  to depoy the same, am getting this error.
    can anybody pls help what am missing.
    the below is my feature manifest:
    <Feature xmlns="http://schemas.microsoft.com/sharepoint/" Title="BApprove_Feature" Id="e3d788e6-994d-446c-afbb-25ecf9907aeb" Scope="Site"></Feature>
    <?xml version="1.0" encoding="utf-8"?>
    <Elements xmlns="http://schemas.microsoft.com/sharepoint/" >
    <Module Name="BApprove" List="113" Url="_catalogs/wp">
    <File Path="BApprove\BApprove.webpart" Url="BApprove.webpart" Type="GhostableInLibrary" >
    <Property Name="Group" Value="Custom" />
    </File>
    </Module>
    </Elements>

    Hi SamolPP,
    Did you already have a look at following similar post?
    https://social.technet.microsoft.com/Forums/sharepoint/en-US/a2af97c8-62db-4194-9fc5-cce6bc7e5d71/content-deployment-error-feature-is-site-scoped-and-cannot-be-added-to-the-web
    Hope this helps

  • Error occurred in deployment step 'Activate Features': Attempted to perform an unauthorized operation.

    Hi,
    I'm unable to deploy a custom workflow/ visual web part or anything using Visual Studio.
    Here is the Output trace:
    ------ Build started: Project: TestWorkflow, Configuration: Debug Any CPU ------
    TestWorkflow -> E:\Codes\TestWorkflow\TestWorkflow\bin\Debug\TestWorkflow.dll
    Successfully created package at: E:\Codes\TestWorkflow\TestWorkflow\bin\Debug\TestWorkflow.wsp
    ------ Deploy started: Project: TestWorkflow, Configuration: Debug Any CPU ------
    Active Deployment Configuration: Default
    Run Pre-Deployment Command:
    Skipping deployment step because a pre-deployment command is not specified.
    Recycle IIS Application Pool:
    Recycling IIS application pool 'SharePoint - 1111'...
    Retract Solution:
    Retracting solution 'Testworkflow.wsp'...
    Deleting solution 'Testworkflow.wsp'...
    Add Solution:
    Adding solution 'TestWorkflow.wsp'...
    Deploying solution 'TestWorkflow.wsp'...
    Activate Features:
    Activating feature 'Feature1' ...
    Error occurred in deployment step 'Activate Features': Attempted to perform an unauthorized operation.
    ========== Build: 1 succeeded or up-to-date, 0 failed, 0 skipped ==========
    ========== Deploy: 0 succeeded, 1 failed, 0 skipped ==========
    Points to be noted:
    I have opened the visual studio using the System Account and "Run as Administrator".
    I checked the User policy for the particular web app and it has Full read and Full control for the System account
    I checked SharePoint administration under services and verified the system account credientials.
    Can you please help me solving this.
    Thanks,
    Sachin

    Please try giving permissions
    pen the SharePoint 2010 Central
    Administration.
    - Go to Application Management
    –> Change site collection administrations
    - Select the correct site
    collection and type your windows account as the secondary site collection administrator.
    - Try deploying now, it should work.
    or 
    You can grante permissions in "SITE ACTIONS > SITE PERMISSIONS"
    Ref :http://learnsharepointwithme.blogspot.in/2013/04/error-occurred-in-deployment-step.html
    Please remember to click 'Mark as Answer' on the answer if it helps you

  • Error occurred in deployment step 'Activate Features'

    I have created an Empty SharePoint Project in Visual Studio 2010 and added a Web Part. The scope for my feature is set to "Site".
    My "Active deployment configuration" is set to Default. When I click Deploy in the context menu of the project in Visual Studio i receive this output:
    ------ Build started: Project: SharePointProject1, Configuration: Debug Any CPU ------
    SharePointProject1 -> C:\Users\udjeg\Documents\Visual Studio 2010\Projects\SharePointProject1\SharePointProject1\bin\Debug\SharePointProject1.dll
    Successfully created package at: C:\Users\udjeg\Documents\Visual Studio 2010\Projects\SharePointProject1\SharePointProject1\bin\Debug\SharePointProject1.wsp
    ------ Deploy started: Project: SharePointProject1, Configuration: Debug Any CPU ------
    Active Deployment Configuration: Default
    Run Pre-Deployment Command:
    Skipping deployment step because a pre-deployment command is not specified.
    Recycle IIS Application Pool:
    Recycling IIS application pool 'SharePoint - 80'...
    Retract Solution:
    Retracting solution 'sharepointproject1.wsp'...
    Deleting solution 'sharepointproject1.wsp'...
    Add Solution:
    Adding solution 'SharePointProject1.wsp'...
    Deploying solution 'SharePointProject1.wsp'...
    Activate Features:
    Activating feature 'Feature2' ...
    Error occurred in deployment step 'Activate Features': Feature with Id '7991a8e8-ead6-4e94-8751-1076c3ed78df' is not installed in this farm, and cannot be added to this scope.
    ========== Build: 1 succeeded or up-to-date, 0 failed, 0 skipped ==========
    ========== Deploy: 0 succeeded, 1 failed, 0 skipped ==========
    The error tells me that my feature doesn't exist.
    When I open Solution Management in Central Administration, I can see that the solution is added to the solution store:
    Name: sharepointproject1.wsp
    Type: Core Solution
    Contains Web Application Resource: Yes
    Contains Global Assembly: Yes
    Contains Code Access Security Policy: No
    Deployment Server Type: Front-end Web server
    Deployment Status: Not Deployed
    Deployed To: None
    Last Operation Result: The solution was successfully deployed.
    Last Operation Details: DKCPH-MOSSDEV2 : http://dkcph-mossdev2/ : The solution was successfully deployed.  
    Last Operation Time: 6/1/2010 1:58 PM
    The strange thing is that Deployment status is "Not Deployed" but Last Operation Result is "The solution was successfully deployed".
    When I check Site Collection Features on http://dkcph-mossdev2 the feature is not there.
    If I deploy the solution manually through Central Administration the solution is deployed successfully and everything works.
    It seems like there is a difference between deploying with visual studio and manually in Central Administration.
    Can someone give me a hint on how to make it work in Visual Studio.
    egholm

    Rickee that is exactly what I found as well.
    I would suggest scripting out your Solution / Feature deployments using PowerShell as Microsoft has said STSADM is going away.   As you can see from my thread I had these same headaches -
    http://social.technet.microsoft.com/Forums/en-US/sharepoint2010programming/thread/436a6463-77a7-467a-b9fd-422f5d569211
    /* Reference Sohel's Blog - http://ranaictiu-technicalblog.blogspot.com/2010/05/sharepoint-2010-deployment-powershell.html
    function WaitForJobToFinish([string]$SolutionFileName)
    $JobName = "*solution-deployment*$SolutionFileName*"
    $job = Get-SPTimerJob | ?{ $_.Name -like $JobName }
    if ($job -eq $null)
    Write-Host 'Timer job not found'
    else
    $JobFullName = $job.Name
    Write-Host -NoNewLine "Waiting to finish job $JobFullName"
    while ((Get-SPTimerJob $JobFullName) -ne $null)
    Write-Host -NoNewLine .
    Start-Sleep -Seconds 2
    Write-Host "Finished waiting for job.."
    #Used only if not launching powershell from SharePoint...
    Add-PsSnapin Microsoft.SharePoint.PowerShell
    $CurrentDir=$args[0]
    #WebApplication Address
    #$WebAddress = "http://ocibapp0t117v3:26678"
    #Solution Name
    $solutionName="Wells Fargo.wsp"
    #Palth of solution
    $SolutionPath="C:\VsProjects\RBDWebPart\RBDWebPart\bin\Debug" + "\"+$solutionName
    Write-Host 'Going to disable feature'
    Disable-SPFeature -identity WellsFargo_Feature1 -confirm:$false -url http://ocibapp0t117v3:26678 -force
    Write-Host 'Going to uninstall feature'
    Uninstall-SPFeature -identity WellsFargo_Feature1 -confirm:$false -force
    Write-Host 'Going to uninstall solution'
    Uninstall-SPSolution -identity $solutionName -confirm:$false
    Write-Host 'Waiting for job to finish'
    WaitForJobToFinish
    Write-Host 'Going to remove solution'
    Remove-SPSolution -identity $solutionName -confirm:$false -force
    Write-Host 'Going to add solution'
    Add-SPSolution $SolutionPath
    Write-Host 'Going to install solution to all web applications'
    Install-SPSolution -identity $solutionName -GACDeployment -AllWebApplications
    #-WebApplication "SharePoint 2010 - Training"
    Write-Host 'Waiting for job to finish'
    WaitForJobToFinish
    Write-Host 'Going to enable Feature'
    Enable-SPFeature -identity WellsFargo_Feature1 -confirm:$false -url http://ocibapp0t117v3:26678
    Write-Host 'Feature Installed all work complete'
    #Uncomment below if you are not using the Powershell snapin from SharePoint.
    Remove-PsSnapin Microsoft.SharePoint.PowerShell
    #File: Myscript.ps1
    Moojjoo MCP, MCTS
    MCP Virtual Business Card
    http://www.mmebs.com

  • "Error occurred in deployment step 'Retract Solution': The solution does not have a WSP file associated with it." occurs while deploying from Visual studio

    HI,
    I get this error "Error occurred in deployment step 'Retract Solution': The solution does not have a WSP file associated with it. " when deploying my project from visual studio 2010 to
    SharePoint 2010 site. I tried restarting IIS, but it didn't help. This application used to work fine until the server crashed during the deployment process. All the other applications on the same server works fine also. Any ideas how to fix this issue? 
    Thanks in advance,
    AM

    Hi
    AM ,
    Thank you for your posting!
    According to your error message, it says your solution does not have a WSP file associated with it. Take a look at the file system.  After you Right Click -> Deploy Solution on the VS Solution, there
    should be a .wsp file at <Solution Directory>\bin\<debug|release>.
    Also the error can be occurring when the developer try to deploy solutions over pre-existing solutions  with material changed  in the solution.  Go to your Central Administration Site and then
    Operations and then Solution Management.  Make sure that there not already a solution with the same name deployed or installed there.  If there is, remove it and try deploying again.
    And you could look in logs and find if there is a below error in ULS log (C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\LOGS).
    Thank you for your understanding and support.
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • Error occured in deployment step "retract solution".Failed to extract the cab file in the solution.

    Hi,
    I'm a sharepoint newbie.I'm getting this error (Error occured in deployment step "retract solution".Failed to extract the cab file in the solution. ) when i try to deploy the solution through visual studio 2012.I did some research and tried
    the following ways but nothing helped me.
    Checked all the file names for any special characters but could not find one.
    Recycled the application pool--no use
    Checked the wsp file--it doesnt have any duplicate files.
    If anyone can help me with this ,it would be great.Spent one whole day to fix this but couldn't achieve anything.
    Thanks !

    Hi,
    Any update?
    I suggest you provide some screenshots or your project structure for further research.
    Best Regards
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Error occurred in deployment step 'Add Solution': The definition specifies a claim provider with a name already in use.

    Hi,
    When i am trying to deploy sharepoint 2010 application in VS 2010, i am getting the below error:
    "Error occurred in deployment step 'Add Solution': The definition specifies a claim provider with a name already in use."
    How to fix this?
    Thank you

    You can use:
    $provider = Get-SPClaimProvider | where {$_.DisplayName -eq "Provider DisplayName"}
    $mgr = Get-SPClaimProviderManager
    $mgr.ClaimProviders.Remove($prov)
    $mgr.Update()
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • Error occured in deployment step 'Activate Features': Timeout Expired

    Hi all,
                 Today when I deploy SharePoint 2010 application using visual studio I faced the error.
    "Error
    18
    Error occurred in deployment step 'Activate Features': Timeout expired.  The timeout period elapsed prior to obtaining a connection from the pool.  This may have occurred because all pooled connections
    were in use and max pool size was reached."
    How to solve this
    s.vijay

    one of the possible thing is may be their is SQL connection leak in your code.You can trace it using sql profile...check this post for more details:
    http://social.technet.microsoft.com/Forums/en-US/7134eb37-621a-4be1-93b2-0f53ac2d912f/error-occurred-in-deployment-step-add-solution-timeout-expired?forum=sharepointgeneralprevious
    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog

Maybe you are looking for

  • Urgent ..How to use Tree component in a web based interface

    I want to make a Java web based windows explorer type interface. For that i want to use tree component . Is it possible for me to do this. Can anybody suggest me how to do ?

  • Facebook "Request for Permission" window opens but is not visible

    Hi everybody, our problem is the same like this: http://forums.adobe.com/thread/772904 I can push buttons on subj forms but they are not visible Does anybody know how to solve it? Thanks Info: I'm trying to connect to facebook from Flex Mobile projec

  • Data Dictionery Overview

    Hello Experts-- M new into the SAP field, nd also i have heard thtfor  making a good carrier in SAP,  strong hold on Data Dictionery is must, so can you experts lettme know what exactly should be my flow to get all the concepts of DD and its heirarch

  • Question about SSD and OS X applications installer

    Well I decided to make use of an SSD which is kind of nice.. except.. there are many applications which won't install onto my HDD.. like Microsoft Office. The installer will only let it install onto my SSD.. which isn't going to work. There's not eno

  • Material from material type

    hi all i have an urgent need to get report in excel for material according to material type. what is the table for that,how can i get it??? thanks