Solved

Retract solutions

Posted on 2011-03-10
12
1,239 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
 
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
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.

 
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

Suggested Solutions

Title # Comments Views Activity
How to link to a folder path with variable username 2 77
Sharepoint workflow on list 6 36
Sharepoint 2013 Library List View Limitations 9 52
Sharepoint 2010 Audit Logs 11 84
Work Over Net is a new and very powerful collaboration product. With its new easy interface it is becoming very competitive to other similar products like webex and office interactive. WON 2010 have the standard business tools needed for multi-offic…
The Scenario: Let’s say you have a quote worksheet in Excel that you use to work up sales figures and such for your clients. You utilize SharePoint to manage and keep track of these documents. You would like values from your worksheet to populate Sh…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

920 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now