.NET Framework

.NET Framework

Dynamic configuration settings in .NET 4

12 January 2012 |

We have a default implementation over our API that we can customize for clients.  In order to support different feature-sets we have a custom configuration section inside our web.config that looks similar to this: <sites> <add name="statichippo"> <hosts> <add name="blog.statichippo.com" /> </hosts> <profile enabled="true" /> </add> ... </sites> and this works well for the most part.  But we have some clients that have certain...

Do not take Windows Updates lightly

09 January 2012 |

Recently we experienced an odd issue; on an intermittent basis authenticated users would see a non-authenticated view of the page they were on.  A little debugging revealed that each server behaved well in isolation but when the load balancer was in the mix moving requests between servers things got wonky.  Using his mad curl skillz, @andrewmglenn determined that the authentication cookie set from one of our servers was not playing nicely with the others.  This turned out to be a two way street – one server didn’t like the cookies set from the other servers and the others didn’t like...

F#, System.Linq extensions and the case of the missing null

28 July 2011 |

I posted a question to StackOverflow yesterday (http://stackoverflow.com/questions/6847203/ef4-1-and-f-how-to-deal-with-values) and will describe the issue and resolution in this post. F# is a funny language in that it is a functional (I suppose it’s multi-paradigm but very strong emphasis on functional) language built on the .NET platform which has a very different style as a whole.  I had an interesting issue the other day where I noticed a null value at runtime being returned from a .NET component in a place that F# was certain null values could not exist. In my case this was Entity Framework. ...