Thursday 7 August 2008

The type initializer for '...Configuration.ObjectBuilder.EnterpriseLibraryFactory' threw an exception

Saw this error today:

The type initializer for 'Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ObjectBuilder.EnterpriseLibraryFactory' threw an exception

A quick googling tells me that I needed to add a reference into my project to Microsoft.Practices.ObjectBuilder.dll

I added that in and hey presto, problem solved!