Possibly a deployment problem?

Topics: Data Access Application Block
Oct 17, 2007 at 1:10 PM
Im a newbie with EL and just wanted to start of by running the Example Code seen on this page:


I cannot get it to work as this error is shown:

The type 'Microsoft.Practices.EnterpriseLibrary.Common.Instrumentation.IInstrumentationEventProvider' is defined in an assembly that is not referenced. You must add a reference to assembly 'Microsoft.Practices.EnterpriseLibrary.Common, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.

I have already added a reference to this DLL, though, by finding it in my EL source folder. In Object browser I can see that the IInstrumentationEventProvider interface is part of the assembly. I get the same error in both EL 3.0 and 3.1.

My setup is:
Win xp
visual studio 2005
Oct 22, 2007 at 11:39 PM

The version of the assembly that you will find in the EL source will be unsigned. You need to get the version from the install folder, tipically c:\Program Files\Microsoft Enterprise Library 3.1 - May 2007\bin.

Hope this helps,