locked
Operation is not valid due to the current state of the object. The Solution installation failed. RRS feed

  • Question

  • I have created a new sharepoint 2013 project to add custom site columns by following these steps https://msdn.microsoft.com/en-us/library/ee231593.aspx

    now i want to deploy the solution to another server. so i did the following steps:-

    1. after successfully building the SP project inside VS 2012.

    2. i copied the generated .wsp file found under the following location

    C:\Users\Administrator\Documents\Visual Studio 2012\Projects\customFields\customFields\bin\Debug

    then i run the following command to deploy the solution on the new server :-

    stsadm.exe -o addsolution -filename C:\customFields.wsp
    

    but i got the following error :-

    Operation is not valid due to the current state of the object.
    C:\customFields.wsp: The Solution installation failed.

    can anyone adivce on this please ?

    Thanks


    • Edited by johnjohn11 Friday, July 17, 2015 12:31 PM
    Friday, July 17, 2015 12:30 PM

Answers

  • Hi,

    Please refer the below link for the solution,

    https://social.technet.microsoft.com/Forums/exchange/en-US/feb60a88-f7f3-44c2-ac65-d7cb6c412435/error-occurred-in-deployment-step-add-solution-operation-is-not-valid-due-to-the-current-state-of?forum=sharepointadmin

    Please restrict feature activation configuration, this will help you to troubleshoot this issue.

    - Click on Project in WSP and press F4, it will open "Project Properties"

    - set "Active deployment Configuration" - as "No Activation"

    - you can activate this features in required sequence after deployment using Activate-SPFeature

    If my contribution helps you, please click Mark As Answer on that post and Vote as Helpful.

    Thanks,

    Amit

    Friday, July 17, 2015 12:44 PM