473,387 Members | 1,440 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Unable to add reference to Microsoft Practices libraries

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!

Dec 13 '07 #1
5 12343
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!
|
*************************************************
"MichaelQuinlan" <ma*******@nospam.nospamwrote in message
news:82**********************************@microsof t.com...
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!

Dec 13 '07 #2

I downloaded the EnterpriseLibrary project from msdn, and installed it.

when you run through the installer, it compiles and gac's and creates all
the files nicely for you.

http://msdn2.microsoft.com/en-us/library/aa480453.aspx


"MichaelQuinlan" <ma*******@nospam.nospamwrote in message
news:82**********************************@microsof t.com...
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!

Dec 13 '07 #3
Usually these assemblies are specified through entries in the web.config
file. If, for example your entries specifiy strong-named assemblies that may
be installed in the GAC and your web-server doesn't have them there, or the
versions are different, that would be one cause of this type of issue.
-- Peter
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
MetaFinder: http://www.blogmetafinder.com
"MichaelQuinlan" wrote:
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!
Dec 13 '07 #4
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.

"Cowboy (Gregory A. Beamer)" wrote:
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!
|
*************************************************
"MichaelQuinlan" <ma*******@nospam.nospamwrote in message
news:82**********************************@microsof t.com...
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!


Dec 13 '07 #5
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.


"MichaelQuinlan" <ma*******@nospam.nospamwrote in message
news:A7**********************************@microsof t.com...
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.

"Cowboy (Gregory A. Beamer)" wrote:
>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!
|
*********************************************** **
"MichaelQuinlan" <ma*******@nospam.nospamwrote in message
news:82**********************************@microso ft.com...
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!



Dec 13 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

110
by: Mr A | last post by:
Hi! I've been thinking about passing parameteras using references instead of pointers in order to emphasize that the parameter must be an object. Exemple: void func(Objec& object); //object...
136
by: Matt Kruse | last post by:
http://www.JavascriptToolbox.com/bestpractices/ I started writing this up as a guide for some people who were looking for general tips on how to do things the 'right way' with Javascript. Their...
2
by: Steve Jorgensen | last post by:
When writing VB or VBA code that works with databases or other external libraries that cannot be trusted to automatically do the right thing when references to their objects are arbitrarily...
17
by: Karl Irvin | last post by:
To use the Textstream object, I had to set a Reference to the Microsoft Scripting Runtime. This works good with A2000 Is the Scripting Runtime included with A2002 and A2003 so the Reference...
1
by: js | last post by:
Does anybody knows how to solve the problem? I added attribute to the following classes in Microsoft.Practices.EnterpriseLibrary.Data namespace, but I still get the error. Thanks. ...
0
by: william | last post by:
Hi All, I'm using Microsoft logging library to log errors in my vb.net applications(web service). I put "Microsoft.Practices.EnterpriseLibrary.Logging.dll" into web.config file for codebase,...
3
by: Dean | last post by:
Hello, I am programming a site and am at the point where I need to start building a library. Being a javascript n00b, but not a programming n00b, I would like to find a book or reference that...
0
by: =?Utf-8?B?YW5rMmdv?= | last post by:
Hi, Thanks in advance for reading this. Not sure where to post this question, but I hope someone in here can help. Trying to write to Event Log in VS 2005 (.NET 2.0) using Enterprise Library...
3
by: =?Utf-8?B?TGV3aXMgTW90ZW4=?= | last post by:
Hello. We are having a problem here trying to compile C# applications. Only one developer has a problem where they attempt to compile the application and the compiler complains about being out of...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.