Adding SharePoint Forums Web Part to a page
Okay, stupid error that I need to fix later today when adding the SharePoint Forums Web Part to a Web Part Page.
When an assembly with SafeControl entries is installed in the GAC (like this version is) the DWP file requires that the <Assembly> tag is a fully qualified one (with the public key token, etc.). This is to distinguish it from other assemblies.
The DWP file that is installed doesn't contain the fully qualified name, only the assembly name so SharePoint throws a hissy fit and says it's not safe.
So to fix this:
- Navigate to your wpcatalog folder under c:\inetpub\wwwroot (or wherever SharePoint is installed to)
- Manually find and edit (with Notepad or something) the BilSimser.SharePoint.WebParts.Forums*.dwp file
- Change the <Assembly> tag to read:
<Assembly>BilSimser.SharePoint.WebParts.Forums, Version=1.1.0.0, Culture=neutral, PublicKeyToken=e516dadc23877c32</Asssembly> - Now you can import the web part onto a page from the virtual gallery.
The <Assembly> tag should match the entry in the SafeControls entry in your web.config file.
Stupid error that I should have realized. I'll rebuild the MSI (again) and update it for those that will download it later today.
Sorry about that folks. Sometimes coffee just isn't enough.