• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 8636
  • Last Modified:

Add reference to assembly Microsoft.Practices.EnterpriseLibrary.Common

I have a class library and am trying to compile and get the following error:

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=3.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.

I've installed version 3 of the Enterprise Libraries

I tried to add the reference, but I don't see that assembly listed?

It goes from:
Enterprise Library Caching Data Provider Design
to
Enterprise Library Configuration Application Block Design

Any help is appreciated.
Thanks.
0
-Dman100-
Asked:
-Dman100-
  • 2
  • 2
1 Solution
 
-Dman100-Software ConsultantAuthor Commented:
Anyone have any ideas?
0
 
Daniel ReynoldsSoftware Applications Developer / IntegratorCommented:
If you have installed the samples, grab the file from the bin directory of one of them.
Microsoft.Practices.EnterpriseLibrary.Common.dll
I think I initially had the same issue and had to browse for the file in the <Add Reference> dialogue.

0
 
Daniel ReynoldsSoftware Applications Developer / IntegratorCommented:
Also try adding the .net reference to
Enterprise Library Shared Library
It appears to actually be the .common.dll file

hth
0
 
-Dman100-Software ConsultantAuthor Commented:
Thanks for the help.  It was the Enterprise Library Shared Library assembly.  That fixed it.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now