C# and casting
I see alot of people using the keywork where they really just want to do a cast. Most of the time a cast will be what you want because it's faster and will fail early when somthing goes wrong. When should you ? You should cast when you already know what type the object is. A…
IIS Background Thread Abort Exception
One of my applications creates a background thread on startup which executes a series of tasks at a regular interval. However I get a after my application pool is recycled. The problem is simply IIS is aborting my thread and my application is not handling it well. I found the…
C# and AOP (Aspect-oriented programming)
I just had a very interesting experience with AOP in C#. I have a function with a return type List which is being intercepted and that's all well and good. However the interceptor function is a validator style function and can prevent the real function by being called and…
Object-Relational Mapper Exceptions
When working with Object-Relational Mappers like nhibernate and Entity Framework 4 it can seem like a good idea to setup a Session or Context at the start of a request and finalise it at the end of a request. This is exactly what I was doing until I figured out how wrong it was…
Sharepoint People Picker Displays Selection as Html
When adding a people picker to a custom Html page I encountered an interesting error. When submitting the page the content would return hidden html from the control along with the message “You are only allowed to enter one item”. The html looks like this. The issue seems to be I…
Sharepoint Permissions
The SharePoint permission model uses user impersonation, where a typical asp.net application will run under the permissions of the application pool SharePoint runs under the users credentials. The scenario we’ll be looking at is updating a sharepoint list programmatically…
Audit Data of Sharepoint List Items
Here is how to read list item data in sharepoint 2007.
AppHarbor - First Impressions
App Harbor is a great new cloud hosting service, which I’ve been trying out over the last few weeks. It deploys straight from source code using msbuild to transform your webconfigs, run your tests and deploy to the servers. However there’s a few things that I didn’t realise…
About Daniel Little
I'm a Software Engineer based in Brisbane Australia, with a focus on developing web based systems. I enjoy functional programming, domain driven design, distributed systems and event sourcing. But most of all I enjoy solving problems. As a developer I have the ability to create…