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

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': 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

  • 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

  • "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': 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

  • Error occurred in deployment step 'Activate Features': The type initializer for ' 'threw an exception

    Hi,
    I have develeoped custom timer job using vs 2010 to deploy in sharepoint server.
    While I right click on solution explorer and click on deploy then system throws an error "Error occurred in deployment step 'Activate Features': The type initializer for 'TestTimerJob.TestTimerJob' threw an exception."
    Please suggest.
    Thanks.
    Knowledge is power.

    Debugger is not firing at all. SO not able t do debugging.
    Knowledge is power.
    Have you tried to set break point on feature activate? If not then set break point on feature activate and try to debug your code line by line.
    See this mSDN article to debug timer job:
    http://msdn.microsoft.com/en-us/library/ff798310.aspx
    http://www.codeproject.com/Articles/70866/Debugging-Custom-SharePoint-Timer-Jobs
    Also make sure that:
    1. Once you deploy the time job, you need to reset the IIS
    2. restart the window timer service from services.msc
    Let us know your result
    Hemendra: "Yesterday is just a memory,Tomorrow we may never see"
    Whenever you see a reply and if you think is helpful, click "Vote As Helpful"! And whenever
    you see a reply being an answer to the question of the thread, click "Mark As Answer

  • Error occurred in deployment step 'Activate Features': Object reference not set to an instance of an object.

    I am trying to create a custom timer job and while deploying it getting the error as:
    Error occurred in deployment step 'Activate Features': Object reference not set to an instance of an object.
    where am i going wrong?please suggest...
    Thanks
    Suu30

    I am not able to get the errors.So attaching the error log files here.Please help
    08/21/2012 17:35:03  1  INF  Entering function PsconfigUserInterfaceMain.Main
    08/21/2012 17:35:03  1  INF    Entering function Common.SetCurrentThreadCultureToInstalledCulture
    08/21/2012 17:35:03  1  INF      Entering function Common.SetThreadCultureToInstalledCulture
    08/21/2012 17:35:03  1  INF        Current thread culture is English (United States), current thread ui culture is English (United States), installed culture is English (United States)
    08/21/2012 17:35:03  1  INF      Leaving function Common.SetThreadCultureToInstalledCulture
    08/21/2012 17:35:03  1  INF      The current ui culture English (United States) is NOT right to left
    08/21/2012 17:35:03  1  INF    Leaving function Common.SetCurrentThreadCultureToInstalledCulture
    08/21/2012 17:35:03  1  INF    Creating the psconfig application context
    08/21/2012 17:35:03  1  INF    Entering function PsconfigApplicationContext.PsconfigApplicationContext
    08/21/2012 17:35:03  1  INF      Entering function UserInterface.UserInterface
    08/21/2012 17:35:03  1  INF      Leaving function UserInterface.UserInterface
    08/21/2012 17:35:03  1  INF      Entering function TaskDriver.TaskDriver
    08/21/2012 17:35:03  1  INF        Entering function TaskDriver.BuildCommandCollection
    08/21/2012 17:35:03  1  INF          Entering function CommandCollectionBase.CommandCollectionBase
    08/21/2012 17:35:03  1  INF          Leaving function CommandCollectionBase.CommandCollectionBase
    08/21/2012 17:35:03  1  INF          Entering function CommandCollection.CommandCollection
    08/21/2012 17:35:03  1  INF          Leaving function CommandCollection.CommandCollection
    08/21/2012 17:35:03  1  INF          Entering function CommandCollectionBase.CommandCollectionBase
    08/21/2012 17:35:03  1  INF          Leaving function CommandCollectionBase.CommandCollectionBase
    08/21/2012 17:35:03  1  INF            Creating the APPLICATION bool exposed parameter
    08/21/2012 17:35:03  1  INF          Leaving function BoolExposedParameter.BoolExposedParameter
    08/21/2012 17:35:03  1  INF          Entering function BoolInternalParameter.BoolInternalParameter
    08/21/2012 17:35:03  1  INF            Creating the APPLICATION bool internal parameter
    08/21/2012 17:35:03  1  INF          Leaving function BoolInternalParameter.BoolInternalParameter
    08/21/2012 17:35:03  1  INF          Entering function Parameter.Parameter
    08/21/2012 17:35:03  1  INF            Entering function Parameter.Initialze
    08/21/2012 17:35:03  1  INF            Leaving function Parameter.Initialze
    08/21/2012 17:35:03  1  INF            Creating the SINGLESERVER bool exposed parameter
    08/21/2012 17:35:03  1  INF          Leaving function BoolExposedParameter.BoolExposedParameter
    08/21/2012 17:35:03  1  INF          Entering function BoolInternalParameter.BoolInternalParameter
    08/21/2012 17:35:03  1  INF            Creating the SINGLESERVER bool internal parameter
    08/21/2012 17:35:03  1  INF          Leaving function BoolInternalParameter.BoolInternalParameter
    08/21/2012 17:35:03  1  INF          Entering function Parameter.Parameter
    08/21/2012 17:35:03  1  INF            Entering function Parameter.Initialze
    08/21/2012 17:35:03  1  INF            Leaving function Parameter.Initialze
    08/21/2012 17:35:03  1  INF          Leaving function Parameter.Parameter
    08/21/2012 17:35:03  1  INF          Entering function BoolExposedParameter.BoolExposedParameter
    08/21/2012 17:35:03  1  INF            Creating the V2V_INPLACE_UPGRADE bool exposed parameter
    08/21/2012 17:35:03  1  INF          Leaving function BoolExposedParameter.BoolExposedParameter
    08/21/2012 17:35:03  1  INF          Entering function BoolInternalParameter.BoolInternalParameter
    08/21/2012 17:35:03  1  INF            Creating the V2V_INPLACE_UPGRADE bool internal parameter
    08/21/2012 17:35:03  1  INF          Leaving function BoolInternalParameter.BoolInternalParameter
    08/21/2012 17:35:03  1  INF          Entering function Parameter.Parameter
    08/21/2012 17:35:03  1  INF            Entering function Parameter.Initialze
    08/21/2012 17:35:03  1  INF            Leaving function Parameter.Initialze
    08/21/2012 17:35:03  1  INF          Leaving function Parameter.Parameter
    08/21/2012 17:35:03  1  INF          Entering function BoolExposedParameter.BoolExposedParameter
    08/21/2012 17:35:03  1  INF            Creating the CLEAN_INSTALL bool exposed parameter
    08/21/2012 17:35:03  1  INF          Leaving function BoolExposedParameter.BoolExposedParameter
    08/21/2012 17:35:03  1  INF          Entering function BoolInternalParameter.BoolInternalParameter
    08/21/2012 17:35:03  1  INF            Creating the CLEAN_INSTALL bool internal parameter
    08/21/2012 17:35:03  1  INF          Leaving function BoolInternalParameter.BoolInternalParameter
    08/21/2012 17:35:03  1  INF          Entering function Parameter.Parameter
    08/21/2012 17:35:03  1  INF            Entering function Parameter.Initialze
    08/21/2012 17:35:03  1  INF            Leaving function Parameter.Initialze
    08/21/2012 17:35:03  1  INF          Leaving function Parameter.Parameter
    08/21/2012 17:35:03  1  INF          Entering function BoolExposedParameter.BoolExposedParameter
    08/21/2012 17:35:03  1  INF            Creating the B2B_UPGRADE bool exposed parameter
    08/21/2012 17:35:03  1  INF          Leaving function BoolExposedParameter.BoolExposedParameter
    08/21/2012 17:35:03  1  INF          Entering function BoolInternalParameter.BoolInternalParameter
    08/21/2012 17:35:03  1  INF            Creating the B2B_UPGRADE bool internal parameter
    08/21/2012 17:35:03  1  INF          Leaving function BoolInternalParameter.BoolInternalParameter
    08/21/2012 17:35:03  1  INF          Entering function Parameter.Parameter
    08/21/2012 17:35:03  1  INF            Entering function Parameter.Initialze
    08/21/2012 17:35:03  1  INF            Leaving function Parameter.Initialze
    08/21/2012 17:35:03  1  INF          Leaving function Parameter.Parameter
    08/21/2012 17:35:03  1  INF          Entering function BoolExposedParameter.BoolExposedParameter
    08/21/2012 17:35:03  1  INF            Creating the SKU2SKU_UPGRADE bool exposed parameter
    08/21/2012 17:35:03  1  INF          Leaving function BoolExposedParameter.BoolExposedParameter
    08/21/2012 17:35:03  1  INF          Entering function BoolInternalParameter.BoolInternalParameter
    08/21/2012 17:35:03  1  INF            Creating the SKU2SKU_UPGRADE bool internal parameter
    08/21/2012 17:35:03  1  INF          Leaving function BoolInternalParameter.BoolInternalParameter
    08/21/2012 17:35:03  1  INF          Entering function Parameter.Parameter
    08/21/2012 17:35:03  1  INF            Entering function Parameter.Initialze
    08/21/2012 17:35:03  1  INF            Leaving function Parameter.Initialze
    08/21/2012 17:35:03  1  INF          Leaving function Parameter.Parameter
    08/21/2012 17:35:03  1  INF          Entering function BoolExposedParameter.BoolExposedParameter
    08/21/2012 17:35:03  1  INF            Creating the runningupgrade bool exposed parameter
    08/21/2012 17:35:03  1  INF          Leaving function BoolExposedParameter.BoolExposedParameter
    08/21/2012 17:35:03  1  INF          Entering function BoolInternalParameter.BoolInternalParameter
    08/21/2012 17:35:03  1  INF            Creating the runningupgrade bool internal parameter
    08/21/2012 17:35:03  1  INF          Leaving function BoolInternalParameter.BoolInternalParameter
    08/21/2012 17:35:03  1  INF          Entering function Parameter.Parameter
    08/21/2012 17:35:03  1  INF            Entering function Parameter.Initialze
    08/21/2012 17:35:03  1  INF            Leaving function Parameter.Initialze
    08/21/2012 17:35:03  1  INF          Leaving function Parameter.Parameter
    08/21/2012 17:35:03  1  INF          Entering function BoolExposedParameter.BoolExposedParameter
    08/21/2012 17:35:03  1  INF            Creating the LanguagePackInstalled bool exposed parameter
    08/21/2012 17:35:03  1  INF          Leaving function BoolExposedParameter.BoolExposedParameter
    08/21/2012 17:35:03  1  INF          Entering function BoolInternalParameter.BoolInternalParameter
    08/21/2012 17:35:03  1  INF            Creating the LanguagePackInstalled bool internal parameter
    08/21/2012 17:35:03  1  INF          Leaving function BoolInternalParameter.BoolInternalParameter
    08/21/2012 17:35:03  1  INF          Entering function Parameter.Parameter

  • 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

Maybe you are looking for