Unable to add reference to Microsoft Practices libraries

  • Thread starter Thread starter MichaelQuinlan
  • Start date Start date
M

MichaelQuinlan

In my development environment I can add references to the Microsoft Practices
libraries and everything works ok. But when I copy the application to the
test server I get the message "CS0234: The type or namespace name 'Practices'
does not exist in the namespace 'Microsoft' (are you missing an assembly
reference?)".

A search of the web suggests that I am missing an assembly reference
(exactly as the message says). I cannot find any place in the project where
the Microsoft Practices libraries are referenced. Other libraries are
referenced in the Web.Config file, but not the Microsoft Practices libraries.
They are physically copied to a Bin folder instead.

How can I get this to work on my test server? How do other people handle this?

Thanks!
 
Most likely an install of the Enterprise Library is all that you need. I am
not sure, however, as I do not know what you have played with.

--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

*************************************************
| Think outside the box!
|
*************************************************
 
Does this mean the Enterprise Library needs to be installed on every computer
the application will run on?

I will try this. Thanks for the reply.
 
No, the developer machine can build them.

Then you can copy them to a common "ThirdPartySourceReferences" folder or
something like that. And reference them from there, and deploy them with
you application.

This is the option if you don't want to gac them on every deployment
machine.


...

Install the library on a development machine.
Find (do a search for)
Microsoft.Practices.EnterpriseLibrary*.*

Copy them (dlls and xmls ) to

c:\common\ThirdPartySourceReferences\ (or whatever you want)

Have your csproj or vbproj reference them from there.
 
Back
Top