473,809 Members | 2,940 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 12373
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*******@nosp am.nospamwrote in message
news:82******** *************** ***********@mic rosoft.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 EnterpriseLibra ry 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*******@nosp am.nospamwrote in message
news:82******** *************** ***********@mic rosoft.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*******@nosp am.nospamwrote in message
news:82******** *************** ***********@mic rosoft.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 "ThirdPartySour ceReferences" 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.Pract ices.Enterprise Library*.*

Copy them (dlls and xmls ) to

c:\common\Third PartySourceRefe rences\ (or whatever you want)

Have your csproj or vbproj reference them from there.


"MichaelQuinlan " <ma*******@nosp am.nospamwrote in message
news:A7******** *************** ***********@mic rosoft.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!
|
************** *************** *************** *****
"MichaelQuinla n" <ma*******@nosp am.nospamwrote in message
news:82******* *************** ************@mi crosoft.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
9972
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 must be an object instead of
136
9468
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 code was littered with document.all and eval, for example, and I wanted to create a practical list of best practices that they could easily put to use. The above URL is version 1.0 (draft) that resulted. IMO, it is not a replacement for the FAQ,...
2
3031
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 released, some thought must be put into how to make sure the objects will all be closed and released in the correct order, even in the result of an error. This requirement can make our code really ugly, even following the best of commonly known best...
17
4210
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 won't be broken when my app is opened with those versions. Also is the Scripting Runtime included as part of the A2000 Runtime Engine which some of my customers use.
1
1468
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. Database.cs DatabaseFactory.cs DatabaseProviderFactory.cs DBCommandWrapper.cs
0
1740
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, the code sample just likes: <runtime> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <dependentAssembly> <assemblyIdentity
3
1086
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 can help me with library design considerations. Anything with examples of separating behavior from content is key. Thanks for the consideration,
0
4613
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 2.0 on a XP Pro SP2 Machine
3
5550
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 memory and unable to find a dll - webengine.dll. They have tried rebooting, gettling latest, and a few other things. We can not determine what is at the heart of this problem. They have Visual Studio.Net 2005 with .Net Framework 2.0 SP1. The...
0
9722
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10643
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10391
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10121
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9200
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6881
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5690
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4333
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3015
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.