Nick Grattan’s SharePoint Blog

About Microsoft SharePoint and some .NET

SharePoint Designer: Clearing the Web Part Cache

leave a comment »

When developing web parts (say in Visual Studio 2008) and using these web parts in SharePoint Designer 2007 you may find that your property definitions are not refreshed in SharePoint Designer. For example, if you add a new property in VS 2008 and recompile, the new property may not not displayed in SharePoint Designer.

To remedy this you can clear SharePoint Designers web site cache:

  • Navigate to {my profile}\AppData\Local\Microsoft\WebsiteCache
  • Locate the folder that relates to the web site you’re using (server name + port)
  • Delete the contents of the folder.

You will find a file in this folder called {webpartproject}.Proxy.DLL. If you cannot delete this file because it’s in use just rename it.

Now, when you next run SharePoint Designer you’ll get a refreshed list of web parts.

Written by Nick Grattan

November 3, 2008 at 10:17 am

Leave a Reply