Author Archives: Bernado

Unknown's avatar

About Bernado

Based in Australia, I am a freelance SharePoint and Dynamics CRM developer. I love developing innovative solutions that address business and everyday problems. Feel free to contact me if you think I can help you with your SharePoint or CRM implementation.

Tip for lessening the SharePoint pains

An ex-colleague used to say that SharePoint = Share the pains, and he’s mostly right 😀 – particularly around rapid development, debugging and testing.  I have found one particular approach that can greatly lessened those pains, and that is to … Continue reading

Posted in SharePoint | Leave a comment

Catching SPWeb created (provisioned) event

In 2010 the SPWebEventReceiver class has a WebProvisioned method which you could override. There is no such thing in 2007 (doh!!). One way to get around this is to use the method described here: http://sharepointmagazine.net/technical/development/introduction-to-sharepoint-feature-stapling-part-2, which essentially involves creating another … Continue reading

Posted in SharePoint | Leave a comment

Can’t change Display Name (or Title property) of Title field during site provisioning

We have a requirement to change the Display Name (i.e. the Title property) of the Title field of a custom list during site provisioning. The code to do this is simple, but some for reason it would just not work. … Continue reading

Posted in SharePoint | Leave a comment

WSPBuilder config settings

There are many settings you can tweak with WSPBuilder. Type wspbuilder -help at the command prompt to get a complete list of them. You can set these settings via the command line args, or a config file. To use a … Continue reading

Posted in SharePoint, WSPBuilder | Leave a comment

How did Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.dll ended up being in the SafeControl list??

In SharePoint, The SafeControl list is defined in the web.config and is a white list of controls that can be placed onto a SharePoint page. The other day I was packaging my solution using WSPBuilder, deploying the WSP, and found … Continue reading

Posted in Enterprise Library, SharePoint, WSPBuilder | Leave a comment

Cannot connect to TFS: TF31002 and TF30331

Symptom: Cannot connect to TFS and the following error messages appear: TF31002: Unable to connect to this Team Foundation Server: http://tfs.global.yourServer.name:8080/tfs.Team Foundation Server Url: http://tfs.global.yourServer.name:8080/tfs. Possible reasons for failure include:– The name, port number, or protocol for the Team Foundation … Continue reading

Posted in TFS | 4 Comments

Querying a Hyperlink field using CAML

Recently I had a requirement to search for items with a certain URL in the Hyperlink field. I noticed that the value being stored in the Hyperlink field is of the format ,. The is an absolute URL. Using a … Continue reading

Posted in CAML, SharePoint | Leave a comment

New CAML operator in SharePoint 2010: IN

It took me 20 mins to work out why my CAML was working against 1 environment and not another. It turns out because I was using the IN operator and that’s new in 2010 and not available in 2007. This … Continue reading

Posted in CAML, SharePoint | 2 Comments

CAML Gt AND Lt AND calculated field AND the wicked U2U CAML Query Builder

U2U CAML Query Builder is a must have tool for SharePoint developers, but today it was giving me grief. I have a calculated column called ‘Duration (months)’. I wanted to find items where duration is less than 24 and more … Continue reading

Posted in CAML, SharePoint, SPFieldCalculated | Leave a comment

Constructor on type ‘Microsoft.SharePoint.SPFieldCalculated’ not found – and the weird SharePoint API

Observed in: SharePoint 2007 and SharePoint 2010. Today I was writing some code to add an SPFieldCalculated column to a list. I got the error message Constructor on type ‘Microsoft.SharePoint.SPFieldCalculated’ not found. when calling SPFieldCollection.CreateNewField(fieldType.ToString(), displayName) This call was working … Continue reading

Posted in SharePoint, SPFieldCalculated | Leave a comment