Tuesday, December 07, 2010

Extending SharePoint 2010 Search Refinements

Working XML for an additional search refinement is below.

MAKE SURE YOU SWITCH THE “USE DEFAULT CONFIGURATION” CHECKBOX to FALSE…..

<Category    Title="Model" Description="Vehicle Make" Type="Microsoft.Office.Server.Search.WebControls.ManagedPropertyFilterGenerator" MetadataThreshold="1"    NumberOfFiltersToDisplay="3"    MaxNumberOfFilters="20"    ShowMoreLink="True"    MappedProperty="Model"    MoreLinkText="show more"    LessLinkText="show fewer" />

Tuesday, October 19, 2010

Permission problem with Access DBs

Was encountering a problem with reading data from Access db supplied by client.

Putting the path to the system.mdw in the reg key

Local Machine/Software/Microsoft/Jet/4.0 – system.mdb

Solved the problem..

Monday, September 27, 2010

Event Handlers

When working with BeforeProperties and AfterProperties, check the Non-Public members in VStudio to see what the property names are before using them to retrieve the actual data..

Wednesday, July 14, 2010

Problems with Copy Local

We were having a problem where a Webparts project was failing to build a wsp files, due to a missing assembly reference. Although the setting in the VS project was Copy Local for the required assembly, it was not ending up in the target dir.

Closing VS, clearing the source, re-syncing with TFS made no difference.

Solution was to set Copy Local to false. Save and compile – fails as expected. Set Copy Local to true. Save and compile – fixed….

Thursday, May 27, 2010

WebPart Import Error

If you get a web-part import error, check that all assemblies referenced by the web-part have the AllowPartiallyTrustedCallers attribute.

Wednesday, April 21, 2010

Registry Access from AddIn on 64bit Machine

Had a problem where an Office AddIn was trying to access a reg key. Worked fine on W2k3 but blew up on Win 7. Turned out to be a 64bit issue. The reg hive for HKLM on 64bit uses the following root for software HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node

File Not Found Exception when using SPSite

Trying to instantiate a site gave a File Not Found exception. Turned out to be a permission issue. Changed the farm account to a domain account (using stsadm –o updatefarmcredentials).

Tuesday, April 06, 2010

VSTO Installer

We have been working on ClickOnce deployment, and found this tool a while ago – keep forgetting it, so posting it here…

C:\Program Files\Common Files\Microsoft Shared\VSTO\9.0\VSTOinstaller.exe
/uninstall <name-of-manifest-file.vsto>