I did a build of my SharePoint site template solution assembly and successfully deployed it to SharePoint, it was version 6.4.0.2032. I did some testing and found a couple problems with my code. I fixed the issues. Uninstalled my solution via “setup.bat /uninstall”. Rebuilt my assembly to version 6.4.0.2033. I again installed my new template successfully, but when attempting to add one of my webparts to the page, SharePoint continues to look for the the old version of my assembly.
Am I missing a step?
Here is the snippet from the log in C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\LOGS:
04/08/2009 13:04:58.18 w3wp.exe (0x0AA8) 0x0BE4 Windows SharePoint Services Web Parts 8l4f Monitorable Error importing WebPart. Assembly SharePoint.Site, Version=6.4.0.2032, Culture=neutral, PublicKeyToken=db45c0486d0dc06d, TypeName. SharePoint.Site.MetadataSearch, SharePoint.Site, Version=6.4.0.2032, Culture=neutral, PublicKeyToken=db45c0486d0dc06d
When a previous version is removed using “setup.bat /uninstall” I’ve noticed that the corresponding “.webpart” files for the WebParts do not get removed. When the new version is re-depolyed these “.webpart” files do not get updated and continue to point to the previous assembly version.
To see what assembly version your Web Parts are referencing:
You should be able to find the corresponding new “.webpart” file (which should reference your new assembly) within your compiled solution. Then just upload it to this Web Part Gallery list (remember to check “overwrite the existing files”)
If you can’t find the “.webpart” file, you can always just download the copy from the “Web Part Gallery” and manually modify it.
Hope that helps.