Check that your referencing the correct version of the Unity assembly; you're probably referencing a lower version or the unsigned version of the assembly (the one from the source code). So just to be sure, remove the reference and re-add it, making
sure the assembly is the one from the entlib installation folder (Program Files\Microsoft Enterprise Library 5.0\bin folder).