Error occurred in deployment step 'Add Solution': A feature with ID '' has already been installed in this farm. Use the force attribute to explicitly re-install the feature.

Hi I am getting the error
Error occurred in deployment step 'Add Solution': A feature with ID 10495515-2482-41fd-98eb-3c87f739f54b has already been installed in this farm.  Use the force attribute to explicitly re-install the feature.
when trying to deploy web parts
question 1 - how do i use the force attribute when deploying from visual studio
question 2 - am i deplying it to the right place, if i deply it to the
url:port that points to my central admin tool it deploys but i cant seem to see it in any of my webs in my site collection, if i deploy it to the
url:port that points to my site collection I get this error.
im new to all this by the way :)
thanks in advance

If you are deploying from Visual Studio then please follow this post:
http://sharepointfordeveloper.blogspot.com/2014/03/solved-visual-studio-issue-error.html
Open the visual Studio and navigate to the feature XML file and add the bellow attribute.
AlwaysForceInstall="TRUE"
The <FeatureName>.Template.Xml output would be some think link this.
<?xml
version="1.0"
encoding="utf-8"
?><Feature
xmlns="http://schemas.microsoft.com/sharepoint/"
AlwaysForceInstall="TRUE"></Feature>

Similar Messages

  • Error occurred in deployment step 'Add Solution': A timeout has occurred while invoking commands in SharePoint host process.

    Hi,
    I am deplyoing a  solution which has  custom web parts- vwp- appln pages, event receivers.
    It was working fine till last week. I was able to deploy the solution and able to see the web parts and func. was working.
    But now from the last 2 days onwards, when I tried to depoy this soution, I am getting the error
    "Error occurred in deployment step 'Add Solution': A timeout has occurred while invoking commands in SharePoint host process "
    may i know why am getting this error.
    note: my dev machine- Win Srvr 2012 - VS 2012- SP 2013 - SP D 2013 was having soem issues  with the space in C drive.
    once i have done the  index reset few months back and i started getting space in C:\ Drive is 0 bytes.
    so what my infra. team  has done is , increased the space in drive to 150 GB[ it was a  VM ].
    help is appreciated !

    What is current disk space on your drives
    Delete ULS logs and other log files from server id not needed
    could be related to ChannelOperationTimeout
    http://msdn.microsoft.com/en-us/library/ee471440(v=vs.100).aspx
    Also, don't forget to restart Visual Studio
    Goto the following regustry key: HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\10.0\SharePointTools
    Add the following as a DWORD (wont be there by default)
    ChannelOperationTimeout
    REG_DWORD that specifies the time, in seconds, that Visual Studio waits for a SharePoint command to execute. If the command does not execute in time, a SharePointConnectionException is thrown.
    The default is 120 seconds.
    http://social.technet.microsoft.com/wiki/contents/articles/21052.como-resolver-o-erro-error-occurred-in-deployment-step-activate-features-a-timeout-has-occurred-while-invoking-commands-in-sharepoint-host-process-pt-br.aspx
    If this helped you resolve your issue, please mark it Answered

  • Deploying simple SharePoint 2013 feature causing error: "Error occurred in deployment step 'Add Solution': An unknown exception occurred while executing a sandboxed code solution request in the worker process."

    When trying to deploy a sandboxed solution containing only a feature with a simple associated event receiver from VS 2013, I'm getting the following error:
    Error occurred in deployment step 'Add Solution': An unknown exception occurred while executing a sandboxed code solution request in the worker process.\r\n|0
    I'm working in Visual Studio 2013, deploying to SharePoint 2013.
    The SharePoint project is very basic. I've only added a feature and an associated event receiver. It works without the event receiver. Then after I simply add the event receiver I get the error.
    I've tried deploying directly from VS 2013 as well as publishing to a .WSP and uploading via web interface. Same error reported using both methods. I'm doing this using an Administrator account that I've confirmed is a site collection administrator.
    Additionally, I've found that if I change Sandboxed Solution to False, deploy it, retract it, then change Sandboxed Solution back to True, then I can successfully deploy it. But this doesn't seem to be a permanent solution as the error will resurface a day
    or two later...

    Hi Steve,
    Are you running your SharePoint 2013 on domain controller? 
    http://www.learningsharepoint.com/2013/08/09/sharepoint-2013-error-an-unknown-exception-occurred-while-executing-a-sandboxed-code-solution-request-in-the-worker-process-rn0/
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/b7408608-c21b-45d9-bc16-e6afff510cd2/installed-sharepoint-2013-foundation-on-window-2010-server-issues-activating-sandbox-solutions?forum=sharepointadmin
    My Blog- http://www.sharepoint-journey.com|
    If a post answers your question, please click Mark As Answer on that post and Vote as Helpful

  • Error occurred in deployment step 'Add Solution': Attempted to perform an unauthorized operation.

    Hello,
    I'm new to SharePoint development. I just created a empty sharepoing app in VS2010, added a webpart and in .cs file of this webpart, add hello inside RenderContents. Its compiling fine. but giving following error while deploying
    Error occurred in deployment step 'Add Solution': Attempted to perform an unauthorized operation.
    My VS 2010 is running under Administrator privileges & I'm admin to this machine.
    Comments?

    Hi, just had the same problem (on a 2013 enviroment) and was able to solve it partly by this post.
    Also experience a problem with dublicate ports, see here: http://technicaltrix.blogspot.dk/2014/11/error-occurred-in-deployment-step-add.html
    http://technicaltrix.blogspot.dk/

  • Sharepoint 2010 - Visual studio 2010 error - Error occurred in deployment step 'Add Solution': Failed to load receiver assembly

    Hello,
    I get the following error when trying to attach an event reciver ->
    Error occurred in deployment step 'Add Solution': Failed to load receiver assembly . The system cannot find the file specified.
    This happens only when i try to change the deployment target from "GlobalAssemblyCache" to "WebApplication".
    Steps to reproduce->
    1. Create a new feature and add an event receiver. Deploy the solution. Everything works fine.(Since deployment target is GlobalAssemblyCache). If you now change the deployment target to "WebApplication" , it works too.
    2. Now, restart visual studio. Change Deployment target to  "WebApplication" without deploying the solution. And you get the above error.
    3. Every time you restart your visual studio with deployment target as "WebApplication", you will receive this error.
    Any idea?? Manual deployment of the solution works fine too.
    When i go to virutal path bin directory, the dll is missing because of which the error occurs. Dont know why, it doesnt copy the dll to bin?
    Thanks in advance,

    Hi,
    Feature receivers must be deployed in the GAC & cannot be deployed to private bin of the WebApplication.
    Link: http://msdn.microsoft.com/en-us/library/ms469501.aspx 
    HTH !!!
    AnjaliCH-MSFT

  • Error occurred in deployment step 'Add Solution': Failed to load receiver assembly

    Guys,
    I've created a VS2010 sharepoint project and added a feature event receiver to my site definition. When I try to deploy it show me the error bellow:
    Error 1 Error occurred in deployment step 'Add Solution': Failed to load receiver assembly "SiteDefinitionProject2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=a693a58979940483" for feature "SiteDefinitionProject2_Feature1" (ID: 9dce3ed9-5eb0-4bea-b42d-4dad84559a36).:
    System.IO.FileNotFoundException: Could not load file or assembly 'SiteDefinitionProject2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=a693a58979940483' or one of its dependencies. The system cannot find the file specified.
    File name: 'SiteDefinitionProject2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=a693a58979940483'
       at System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)
       at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
       at System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
       at System.Reflection.Assembly.Load(String assemblyString)
       at Microsoft.SharePoint.Administration.SPFeatureDefinition.get_ReceiverObject()
    WRN: Assembly binding logging is turned OFF.
    To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
    Note: There is some performance penalty associated with assembly bind failure logging.
    To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
      0 0 SiteDefinitionProject2
    9dce3ed9-5eb0-4bea-b42d-4dad84559a36
    Someone can hepl!?
    André Rentes

    I also just encountered this error while trying to deploy my feature from Visual Studio 2010. I found the solution for my situation. Perhaps it may help others as well.
    To see if your problem has the same cause as I encountered, open up the 14 hive and go to 14/template/features/<your-project-name_your-feature-name>. In this folder you will find a file Feature.xml. Open it up with notepad. On the second line
    you will find the XML node Feature. Scroll to the right untill you see the XML attribute ReceiverClass. This
    should show you a namespace, i.e. KoenZomers.MyProject.Branding.Features.Web.BrandingEventReceiver. In my situation it didn't show a namespace, but instead the following: $SharePoint.Type.<some-guid>.FullName$. If this is the same for
    you, read on as this might be the solution to your problem. If it does already show a namespace, this probably won't help you.
    This problem is caused because of a bug in Visual Studio 2010. It should replace the guid to match the guid found above the class declaration of your event receiver. For example:
    [Guid("ff9717e0-05c4-4e7e-9349-3f31d3919b9c")]
    public
    class
    BrandingEventReceiver
    : SPFeatureReceiver
    Probably because I recreated the event receiver class, it did generate a new Guid tag with a new Guid above my class declaration, but it did not update the feature file to reference this new guid. To do this manually, open up the folder on your development
    machine where your Visual Studio project files reside. In it you will find a subfolder named Features. Open it. In that folder you fill find subfolders with the names of your features as given in Visual Studio. Open up the one containing the non functional
    event receiver. In that folder you will find a file called <feature-name>.feature. Right click on it and choose Open with. Select to open it with notepad. On the second line you will find the XML node feature. Scroll to the right until you see the XML
    attribute receiverClass in the same line. Make sure the value of this XML node is built up using the following syntax: $SharePoint.Type.<guid-from-event-receiver-class-declaration>.FullName$. So in the above example it would be $SharePoint.Type.ff9717e0-05c4-4e7e-9349-3f31d3919b9c.FullName$.
    Save the file, close notepad. Close the solution in Visual Studio. Once closed, reopen the solution. Do a deploy of your solution. It should work this time. If you check the feature.xml file in the 14 hive now, it does display a namespace. This
    made it work for me.

  • Error occurred in deployment step 'add solution' value cannot be null Parameter name: g

    Hi!
    I have a SharePoint Server 2013 with latest updates. Worflow Manager 1.0 installed and configured correctly. The server has a website, site temblate is Reacods Center. This site is default. On the site I created a blank Document library "TestLib"
     If I create workflow in SharePoint Designer 2013, workflow works normally. Workflow set Title of element to "MyCustomTitle" and Write to History string "Done!".
    If I create Empty Solution in Visual Studio 2013, insert into solution Workflow and make same actions, my solution at deployment step fails with error:
    "error occurred in deployment step 'add solution' value cannot be null Parameter name: g"
    Please, help me to resolve this problem?
    Thanks!

    Hi,
    What if stop this service, then start it again, perform an iisreset? It will make the change applied to the whole farm.
    Also, you can check the ULS logs to see if there is any unexpected error occurs when deploying this solution.
    About how to check the ULS logs:
    http://blogs.technet.com/b/fesiro/archive/2013/11/11/sharepoint-logging-and-troubleshooting-using-ulsviewer.aspx
    Thanks
    Patrick Liang
    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 occurred in deployment step 'Add Solution': Operation is not valid due to the current state of the object

    hi,
      when i was trying to deploy a SP  solution from my vs 2012 solution. this error  is displayed.
    i tried many things like
    1) get the wsp and apply power shell cmds to add and deploy, here also it failed:
    Add-SPSolution -LiteralPath d:\mywsp.wsp
    Install-SPSolution mywsp.wsp -GacDeployment -AllWebApplications -Local
    2) restart the timer services and  do  iisreset and  reboot the server. etc .as mentioned in one of the  the below  blogs:
    http://sharepoint1on1.blogspot.in/2014/04/sharepoint-error-occurred-in-deployment.html
    http://suehernandez.wordpress.com/2011/03/31/error-occurred-in-deployment-step-activate-features-operation-is-not-valid-due-to-the-current-state-of-the-object/
    http://www.dotnetsharepoint.com/2014/04/error-occurred-in-deployment-step-add.html
    http://social.msdn.microsoft.com/Forums/en-US/63adde23-03cf-4b65-923e-1219da94a780/error-occurred-in-deployment-step-add-solution-operation-is-not-valid-due-to-the-current-state-of?forum=sharepointdevelopmentprevious
    http://www.shakirmajeed.com/error-occurred-in-deployment-step-activate-features-operation-is-not-valid-due-to-the-current-state-of-the-object/
    but even after doing all these steps, the  error still persists!. and am not deploying into a remote server, the dev env is in a VM, where sp 2013, vs 2012, sql 2012  are installed.
    just wanna share one  note:   there is a isue in my search admin component. index was reset due to some reason. and from that time onwards my search full/incremental crawls were not working!
    will this cause an issue in my wsp deployment ? i hope  it wont, still  asking...
    can anyone help me how to resolve this error.because this is a  show stopper for me for the last few days!
    help is highly appreciated!

    This issue cause because of feature activation failure while WSP deployment.
    when you create a WSP using visual studio, it creates WSP package with default deployment configuration settings.
    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, ShankarSingh(MCP)

  • Error occurred in deployment step 'Add Solution': Failed to extract the cab file in the solution.

    I have received the follwoing error when I depoly the custom masterpage with css, images, javascript files:
    Error occurred in deployment step 'Add Solution': Failed to extract the cab file in the solution.
    Any help will soon is appreciated.

    Hi Bagalur,
    Thanks for your sharing. It will help others who stuck will the same issue.
    Best Regards
    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]
    Jerry Guo
    TechNet Community Support

  • Error occured in deployment step 'Add Solution': Error: Cannot add the specified assembly to the global assembly cache

    hi,
    I have created a separate project which contains a class which has some generic methods- its a Utility class.[ its a  class library project ]
    I added this dll into my SharePoint project's wsp package [package--> advanced-->add assembly project from output ]  [ SP 2013/ VS 2012]
    So till yesterday everything was working fine, its has successfully deployed in the GAC.
    But today when I tried to deploy my solution I got this error
    "Error occured in deployment step 'Add Solution': Error: Cannot add the specified assembly to the global assembly cache" .
      I closed the  VS and did iisreset , and uninstalled dll using powershell . and i  went to package removed the dll from the wsp package and deployed again.
    Now when i added  the  dll into this package again, it failed to deploy.
    can anyone tell ,  why this is happening. i have not done any changes in the dll yesterday or today.
    suddenly , it  started behavin stranegly. 

    Use the power shell command to delete dll
    http://www.c-sharpcorner.com/uploadfile/anavijai/how-to-install-or-uninstall-dll-in-gac-using-powershell/

  • 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

  • "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]

  • SharePoint - Error_1_Error occurred in deployment step 'Add Solution': 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 rea

    Hi,
    I am Shanmugavel, SharePoint developer, 
    I am facing the below SharePoint 2013 deployment issue while deploying using VS2012.
    If i will deploy the same wsp or existing wsp
    (last build) using direct powershell deployment, the solution adding properly, but the same timeout exception coming while activation the features.  Please find the below error.
    I tried the below activists:
    1. Restarted my dev server, DB server. 
    2. tried the same solution id different server
    3. tried existing wsp file (last build version)
    4. Deactivated all the features, including project Active deployment configuration.... but still i am facing the same issue.
    I hope this is not coding level issue, because still my code is not start running, before that some problem coming.
    Please help me any one.....  Last two days i am struck because of this...

    What you need to understand is the installation of a WSP does not do much. It just makes sure that you relevant solution files are deployed to the SharePoint farm.
    Next comes the point when you activate the features. It is when the code which you have written to "Activate" certain features for your custom solution.
    Regarding the error you are getting, it typically means that you have more connections (default is I guess 100) open for a SQL database then you are allowed to.
    If you have a custom database and you are opening a connection, make sure you close it as well.
    Look at the similar discussion here:
    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[^]
    I would suggest further to look at the
    ULS logs[^] to get better insight.
    Manas Bhardwaj's Stream : www.manasbhardwaj.net

Maybe you are looking for