Unable to add reference to Microsoft Practices libraries

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!
 
C

Cowboy \(Gregory A. Beamer\)

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.
 
M

MichaelQuinlan

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.
 
S

sloan

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,045
Latest member
DRCM

Latest Threads

Top