We are having a weird issue. None of our WSPs (MOSS 2007 and 2010) work first time they are deployed. We noticed that upgrading solution (after deploying) works.

Our WSPs normally replace user controls in layouts folder. Any ideas why this is happening?

  • When you say "work", does this mean you get an error or changed code isn't updating? – Alex Angas May 2 '11 at 5:16
  • No Error nothing. The resule via stsadm is "Operation completed successfully" but files wont be replaced. Then we run upgrade immediately and files get updated. – Shoban May 2 '11 at 5:46
  • 2
    try deploying the solutiosn using stsadm with the -local parameter. Otherwise the actual deployment is done by the timer job in the background and you will not see any errors (unless you check the ULS logs) – Wictor Wilen MCA MCM MVP May 2 '11 at 5:57
  • As wictor say: operation completet successfully refers only to the timer job. In 2010 you can check the status for a given solution in PowerShell using: Get-SPSolution | select DisplayName, LastOperationResult – Anders Rask May 2 '11 at 9:35
  • Did you find a solution to this problem or have any more information you can add to the question? – Alex Angas May 17 '11 at 2:02

Maybe adding "stsadm -o execadmsvcjobs" as your last step in the initial deployment will fix the issue. It will execute the administrator timer jobs immediately.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.