Tip: Clearing the SPD workflow assembly cache

Hi folks, it's Gabe Hall again with a quick tip you can use when developing workflow activities on WSS for use in SPD :).

If you are building a workflow activity on WSS for SPD you may have to update your activity DLL regularly (say to fix bugs or alter behaviors).  Sometimes when you do this, SPD won't recognize your changes to the activity and instead appear to be using the 'old' DLL.  Depending on what you've changed in the activity on the server, SPD may not allow you to use this activity at all.  This is due to a mismatch between the server's activity and the SPD client's cached activity.  To fix this problem its a good idea to clear your SPD activity cache whenever you update your activities DLL on the server.

To clear the SPD activity cache:

1. Close SPD.
2. Open “My Computer”.
3. Go to %System Drive%\Documents and Settings\%user%\Local Settings\Application Data\Microsoft\WebSiteCache (If you are running Vista, that path is different - look for %System Drive%\Users\%user%\AppData\Local\Microsoft\WebSiteCache).
4. Go to a directory that looks similar to the name of the website you were connecting to. (Alternatively, you can just delete all these directories and everything should work when you boot SPD).
5. Delete the assembly with the name similar to the one you are changing.
6. Boot SPD.
7. You can now work with your updated activity.

See you soon!

Comments (17)

  1. Live Search Web Service and Data View Web Part Live Search Web Part for MOSS White Paper Migrating a

  2. Didn’t work for me…not a workflow DLL though.

    Basically I have a standard ASP.Net control which is inheriting from SPControl. I have added this control to a to a publishing Layout. In the past (very briefly) it inherited from a WebPart, but now it is back to SPControl.

    The problem is that now I cannot stop SPD from adding __WebPartId="{541174A7-6472-4699-A869-D02CBB86791C}" to the attributes evrytime I save the file?? I have cleared this cache, re-built the project, IISRESET…everything I can think of.

    Is there anyway to stop SPD from randomly adding attributes and bits of HTML…essentially can I get it to be more like notepad?

  3. こんにちは。 方法を掲載しようと思いましたが、既にチュートリアルとサンプルのダウンロードが可能なページがありますのでご紹介します。(下記リンク) Adding Activities to SPD (Microsoft

  4. Hi, I’m Phil Allen, a developer with the SharePoint Designer team who works primarily on Workflow. Today

  5. Di Giorgio Domencio says:

    I have a problem with WSS 3.0 custom activity. My __Context property is always null. I have followed step by step instructions in this article but not work. Can you help me?


  6. faheem says:

    Hi there, i tried this but no luck, using MOSS 2007 though. Any ideas?


  7. When creating or modifying a web page, one of the handy new features in SharePoint Designer 2007 is the

  8. Body: I got this tip from a Microsoft consultant working on the US Navy project I also work on. If getting

  9. Rich Rockwell says:

    I had a SPD workflow that looked like it compiled – no errors in SPT, but the changes I made were not getting updated.  Clearing the SPD workflow assembly cache solved the problem.  THANKS Gabe!  

  10. Joe Thomas says:

    Worked for me. The workflows were not getting updated before. Thx !

  11. Anand says:

    Thanks… 🙂

  12. steve.fink says:

    Worked for me, THANK YOU Gabe, THANK YOU!!!

  13. Sravan says:

    Hi Gabe,

    I'm working on SPD2010 and created custom workflows for my site. Lately, it stopped updating when I'm trying to publish(new) or re-publish(old) any workflows. Last time the proxyassemblycache got updated is around 4 hours back and after then nothing seems to be updating. The ULS log shows the following msg when I tried to trigger one..

    01/11/2012 12:20:32.41 SPUCWorkerProcessProxy.exe (0x1CC4) 0x1434 SharePoint Foundation Workflow Infrastructure b9vu Unexpected Declarative workflows cannot automatically start if the triggering action was performed by System Account. Canceling workflow auto-start. List Id: %s, Item Id: %d, Workflow Association Id: %s

    My environment is: windows server 2008r2, SPS2010.

    Could you please comment in this..thank you.

  14. Melick says:

    Thanks It Worked For me

  15. theman says:

    Worked for me.  Would be interesting to know why this workaround is needed though.

  16. Kadonoffj says:

    Great tip, worked for me. However my websitecache directory was a bit different:

    %System Drive%Users%username%AppDataLocalMicrosoftWebsiteCache

  17. BlueSky2010 says:

    Thank you Gabe! Came across another thread on this topics – might help someone.


Skip to main content