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.

Does iterating through SPList.Items using foreach affect performance?

Iterating through SPList.Items using a for (int i) loop is bad for performance, as each call to SPList.Items causes a trip to the DB and will retrieve all items. See http://blog.dynatrace.com/2009/01/11/the-wrong-way-to-iterate-through-sharepoint-splist-items/. I have always wondered whether using a foreach loop … Continue reading

Posted in SharePoint, TypeMock | Leave a comment

The IT-enabled future

I am doing a Master of Business Informatics at the University of Canberra and next week I have to do a 5min semi-formal presentation on what the IT-enabled future might look like. Adding my own speculation to research I have … Continue reading

Posted in Stuffs | Leave a comment

What is the essence of TDD?

It kinda irritate me when people talk about TDD being write test first before you write code – and simply stop there. I don’t think this sufficiently captures the essence of TDD, and I suspect that in some cases this … Continue reading

Posted in TDD | Leave a comment

File not found error when going to Site Settings of subsite

I had a fresh installation of SharePoint 2010 and everything was all fine. I created a subsite and that was fine too – until I went into Site Settings of the subsite. SharePoint gave me the error below: File Not … Continue reading

Posted in SharePoint | 7 Comments

OMG!! My first Wikipedia edit!!

Oh my god! I just made my first ever Wikipedia edit! While searching for info on Austrade (Australian Trade Commission), I came across this page on Wikipedia: I edited the page to remove the bit in red. Now I have … Continue reading

Posted in Stuffs | Leave a comment

Can’t see deployed custom field

OK so I couldn’t come up with a concise post title that describes the problem! I was writing XML to deploy a number of custom fields through a feature. The feature activated fine. Two of the three fields were visible in … Continue reading

Posted in Custom Fields, SharePoint | Leave a comment

Can’t edit list forms in SharePoint Designer: soap:ServerServer was unable to process request. —> Value does not fall within the expected range.

In SharePoint Designer 2010 I would always get the error message below when I try to open any list form (DispForm.aspx, EditForm.aspx, etc) for editing. soap:ServerServer was unable to process request. —> Value does not fall within the expected range. … Continue reading

Posted in SharePoint, SharePoint Designer | 1 Comment

LINQ to SharePoint and transaction

In SharePoint 2010 you can use LINQ to insert items into a list like this: using (var context = new DataEntitiesDataContext(http://localhost/)) {        var item1 = new MyListItem();        item1.Comment = “Item 1”;        var item2 = new MyListItem();        … Continue reading

Posted in LINQ, SharePoint | 2 Comments

Class needs to be public for WSPBuilder to add as SafeControl

When WSPBuilder builds the WSP package, it looks through all the classes in the assembly. If it sees any class that inherits from WebControl (and perhaps also Control/UserControl?), it will automatically instruct the manifest to add the assembly to the … Continue reading

Posted in WSPBuilder | Leave a comment

Open Command Window Here in Windows Explorer – this is COOL!

OK here’s something cool I learnt at TechED AU. In Windows Server 2008, in Windows Explorer, if you hold down the Shift key and right click on the content listing of a folder (i.e. the right pane), you will get … Continue reading

Posted in Windows Server 2008 | Leave a comment