I recently developed a little thing for SharePoint 2010. the error in the title was encountered in VS2010. I checked some information (already listed below) but did not solve my problem.
After some research, I found out the cause and solution of the problem.
In the SharePoint 2010 environment with multiple servers, after VS2010 is compiled successfully, right-click the project and select Deploy. This error is reported. I chose Farm Solution instead of Sandbox Solution.
The solution is to compile your project in VS2010 and select Package. find the generated wsp file in the Bin directory and upload it to the solution gallery in the management center. deploy solution in the management center. it will be successful.
A powershell command is required when you upload wsp to the management center.
Add-spsolution-literalpath "d: \ temp \ myspsproj. wsp"
Generally, developers may not deploy solution directly in a field with multiple servers. anyway, I hope this article will help you.
I wish you a pleasant development of SharePoint.
References
================================
SharePoint 2010 projects with field elements cannot be redeployed
Http://support.microsoft.com/kb/2022443
Error occurred in deployment of step 'activate Features ': the field with ID defined in feature was found in the current site collection or in a sub site.
Http://blogs.msdn.com/ B /yardman/archive/2010/07/27/error-occurred-in-deployment-of-step-activate-features-the-field-with-id-defined-in-feature-was-found-in-the-current-site-collection-or-in-a-sub-site.aspx