Microsoft SharePoint Designer Team Blog

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!
-Gabe

Published Tuesday, March 27, 2007 9:51 PM by spdblog

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

 

SharePoint, SharePoint and stuff said:

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

March 29, 2007 6:14 AM
 

Vince Rothwell said:

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?

June 7, 2007 10:08 AM
 

松崎 剛 ブログ (Tsuyoshi Matsuzaki Blog) said:

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

June 11, 2007 7:45 AM
 

Microsoft SharePoint Designer Team Blog said:

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

October 1, 2007 2:28 AM
 

Di Giorgio Domencio said:

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?

Thanks!

October 9, 2007 11:52 AM
 

faheem said:

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

Faheem

April 15, 2008 7:33 PM
 

Microsoft SharePoint Designer Team Blog said:

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

August 15, 2008 8:54 PM
 

Mirrored Blogs said:

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

May 4, 2009 3:28 PM
 

Rich Rockwell said:

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!  

October 13, 2009 11:03 AM
 

Joe Thomas said:

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

October 20, 2009 12:53 AM

Leave a Comment

(required) 
(optional)
(required) 

  
Enter Code Here: Required
Submit

© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Microsoft
Page view tracker