Solved

Retract solutions

Posted on 2011-03-10
12
1,273 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
Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

 
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

Office 365 Training for IT Pros

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

Question has a verified solution.

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

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…
We had a requirement to extract data from a SharePoint 2010 Customer List into a CSV file and then place the CSV file into a directory on the network so that the file could be consumed by an AS400 system. I will share in Part 1 how to Extract the Da…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

734 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