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 am having trouble with deploying code.

  1. I have developed and deployed a farm soluton [version 1].

  2. It works fine, with my custom button showing up.

  3. I Retract the solution, clean solution and rebuild the solution.

  4. When i deploy the code with minor changes [version 2]. No effect takes place. When i debug it brings up old code with minor changes missing. Basically it is still running version 1 of code.

  5. Only way i can get version 2 of the code running is by restarting the server and deploying again.

Please let me know what am i missing.

Thank you

Sharepoint Newbie

share|improve this question
    
Can you give more information on your solution ? Is is a feature, an application page, a central admin specific feature ? It would help us getting to your error ! –  Sébastien Levert Oct 22 '10 at 15:09
add comment

5 Answers

Try restarting the timer service using this on a command prompt

net stop "Windows SharePoint Services Timer" net start "Windows SharePoint Services Timer"

If you developing a timer job it has a cached version of your dll so if you stop and start the service it will load fresh copy.

I guess you are doing an IISRESET/App Pool recycle after deploying right ? Hope this helps

share|improve this answer
add comment

This was resolved by cleaning local IE content files, such as cookies, javascript files etc.

share|improve this answer
    
Probably you had javascript files and / or css files that were stucked to their old version. –  Sébastien Levert Oct 25 '10 at 19:31
    
As an editorial solution, could you mark your answer as "Correct" so that others may be able to find solutions to similar problems. Thanks. –  James Love Nov 9 '10 at 8:29
add comment

You may want to double check the logs to be sure v2 deployed successfully. If so, then it may be a timer job issue (e.g. maybe the timer service hadn't finished deploying by the time you checked it).

share|improve this answer
    
2007 or 2010 .Try building the solution manually ( I know it is not the easiest route) but you have more control –  sharepointde1tuke Oct 22 '10 at 16:14
add comment

GAC deployments need IISReset

share|improve this answer
add comment

If you want to make a "Best practice" update on you solution, you can simply use the stsadm tool to upgrade your solution. It will make the required restarts (Except if it is a timer job, you'll have to restart the SPTimerV3 (owstimer.exe) by hand.

Try the stsadm -o upgradesolution.

share|improve this answer
add comment

Your Answer

 
discard

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