Solved

Retract solutions

Posted on 2011-03-10
12
1,269 Views
Last Modified: 2012-05-11
i cannot retract my solution due to error as shown below.

How can I force retraction on my solution? sharepoint 2007.

I already tried this but to no avail:

stsadm -o retractsolutions -name mySolution -immediate
The solution can not be deployed.  Directory "MyWebPart" associated with feature '494e4a4a-4716-47b0-917c-14763ee5ba7c' in the solution is used by feature 'f417ff19-ee19-4ea5-acf2-bc236b81772b' installed in the farm. All features must have unique directories to avoid overwriting files. 

The solution can not be deployed.  Directory "MyWebPart" associated with feature '494e4a4a-4716-47b0-917c-14763ee5ba7c' in the solution is used by feature 'f417ff19-ee19-4ea5-acf2-bc236b81772b' installed in the farm. All features must have unique directories to avoid overwriting files.

Open in new window

0
Comment
Question by:PagodNaUtak
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 6
12 Comments
 
LVL 14

Expert Comment

by:KoenVosters
ID: 35094042
Just go to central administration. Solution Management. Remove the solution that deployed a webpart called MyWebPart
0
 
LVL 8

Author Comment

by:PagodNaUtak
ID: 35104937
As I have said, there is an error when you retract or remove the solution.

Is there any other idea?
0
 
LVL 14

Expert Comment

by:KoenVosters
ID: 35107046
You aren't providing us with the error that you are gettting, that makes it hard to figure out what is going wrong
0
Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

 
LVL 8

Author Comment

by:PagodNaUtak
ID: 35107470
Here is the error in the event log...
Event Type:	Error
Event Source:	Windows SharePoint Services 3
Event Category:	Timer 
Event ID:	6759
Date:		3/11/2011
Time:		2:01:52 PM
User:		N/A
Computer:	ComputerName1
Description:
The Execute method of job definition "SPSolutionDeploymentJobDefinition" (id "7a829fdc-2cab-4f3d-b749-2e6b8c78a15b") threw an exception. The solution can not be deployed.  Directory "MyWebPart" associated with feature '494e4a4a-4716-47b0-917c-14763ee5ba7c' in the solution is used by feature 'f417ff19-ee19-4ea5-acf2-bc236b81772b' installed in the farm. All features must have unique directories to avoid overwriting files.

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

Open in new window

0
 
LVL 14

Expert Comment

by:KoenVosters
ID: 35107669
It is the deployment that is failing not the retract. There see to be another webpart that is linked to another solutionid that has the same name. As they will be landing in the same feature you must uninstall that one.

Did you try to craete a webpart in your environment before with the same name? Or did another developer try to do that?
0
 
LVL 8

Author Comment

by:PagodNaUtak
ID: 35125485
Sorry wrong exemption:

here is the error code:

The solution can not be deployed.  Directory "MyWebPart" associated with feature '494e4a4a-4716-47b0-917c-14763ee5ba7c' in the solution is used by feature 'f417ff19-ee19-4ea5-acf2-bc236b81772b' installed in the farm. All features must have unique directories to avoid overwriting files.
0
 
LVL 14

Expert Comment

by:KoenVosters
ID: 35125492
Let me try to explain it again:

Someone created a solution MyWebPart with feature id f417...............
This solution creates a folder MyWebPart under c:\program files\common files\microsoft shared\web server extesions\12\templates\features

Now you are creating a solution named MyWebPart as well. Your feature id is 494............ but will be deployed to MyWebPart folder as well. Rename it so it deploys to a different folder and you are all set. The retracting of the solution is not the problem, the deployment of it is.
0
 
LVL 8

Author Comment

by:PagodNaUtak
ID: 35126715
How do I remove the f417
0
 
LVL 14

Expert Comment

by:KoenVosters
ID: 35127038
If you go to central administration, solution management you should see the solutions that have been deployed. There you should see something like MyWebPart unless it is part of a bigger solution. Then it might be a bit tricky to figure out which solution used the MyWebPart  feature.
0
 
LVL 8

Author Comment

by:PagodNaUtak
ID: 35134510
I manage to retract all solution except for one solution. When I tried to remove this solution the error I posted above is what I get. So, How do I get retract that solution?
0
 
LVL 8

Author Comment

by:PagodNaUtak
ID: 35153930
Looks like no one can really help me...
0
 
LVL 14

Accepted Solution

by:
KoenVosters earned 500 total points
ID: 35154727
Its a hack and I honestly cant really say what the state will be of your farm, but you can  go to the 12\templates\features\mywebpart folder, open the feature.xml and change the id to the one it is expecting.
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Last week I faced a strange issue recently, i have deployed SharePoint 2003 servers for one project and one of the requirements was to open SharePoint site from same server. when i was trying to open site from the same server i was getting authentic…
If you create your solutions on SharePoint sooner or later you will come upon a request to set  permissions of the item depending on some of the item's meta-data - the author, people assigned as approvers, divisions, categories etc. The most natu…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question