Solved

Retract solutions

Posted on 2011-03-10
12
1,225 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
Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 
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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

I recently came across an issue with a MOSS 2007 deployment where access into some sub-sites were denied, even for the MOSS farm administrators. A bit of background to the setup of this MOSS farm; this was a three server setup, consisting of a fr…
These days socially coordinated efforts have turned into a critical requirement for enterprises.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

705 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

21 Experts available now in Live!

Get 1:1 Help Now