Unable to add selected web part(s) - solution

Jun 5, 2008 at 8:46 AM

RE: "Unable to add selected web part(s). Could not load file or assembly 'TestPart, Version=1.0.0.0, Culture=neutral, PublicKey Token=null' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference."" <-- This is a bug in setup.

First make sure that your .webpart file contains current version and token info. When you're done with setup (or repair), go to Site Settings > Web Part Gallery and upload your .webpart file by hand. You need to do this every time you change assembly version or if you change assembly signing properties.