Solved

Retract solutions

Posted on 2011-03-10
12
1,251 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
  • 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
Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

 
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

A question that is asked often, is how to generate sequential numbers in InfoPath Forms. The best way to achieve this is to use a SQL database, along with a stored procedure and a web service to connect Forms Services to the DB. The first thing t…
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…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

803 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