Having got the error in the title you may also have noticed
EnterpriseLibraryContainer.Current throws an ArgumentException.
The reason for this is that you are missing a reference to the ExceptionHandler.Logging dll
…And/Or you have not copied that dll to the bin directory of your solution.
You wouldn’t forget something as simple as that, would you ?
I certainly didn’t.
And neither did NORBERT my invisible Aardvark snowboarding companion.
And that full error text for your unmitigated reading pleasure:
‘Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Logging.LoggingExceptionHandler, Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Logging, Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35’ cannot be resolved. Please verify the spelling is correct or that the full type name is provided.