Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I have a webpart that failed on one web server and works fine on another. The issue seems to be related to the .DLL on the failing web server.

If i use the command

stsadm -o retractsolution

and specified in the -url field the name of the server that it was deployed on, would it retract it from only that server, or the entire MOSS farm?

unfortunately we have a prod environment which has these 2 web servers load balanced, and the dev and staging environments are just single web servers, so I can't test it before attempting.

share|improve this question
add comment

2 Answers

That would retract the solution from all Web Front End servers. It does this via a timer job. Sharepoint also waits until the solution is retracted from all web servers before it shows the solution as "Retracted" in the central admin.

We had a situation where it used to fail on one server or another but we later found that IIS on the failing server itself would become non responsive. A patch resolved the issue later on and then we never had any issues while deploying and retracting on multiple servers.

share|improve this answer
add comment

It depends on where your assembly is installed.

If your assembly is installed into the Global Assembly Cache, that command will not remove it from your servers.

If your assembly is installed into the the Web Application Bin folder, then that command will remove it from the Bin folder for that Web Application (across all servers in your farm). If this is the only Web Application the solution is deployed to then it will effectively remove the assembly from all servers in the farm.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.