HighTechTalks DotNet Forums  

Unable to add reference to Microsoft Practices libraries

ASP.net ASP.net discussions (microsoft.public.dotnet.framework.aspnet)


Discuss Unable to add reference to Microsoft Practices libraries in the ASP.net forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
MichaelQuinlan
 
Posts: n/a

Default Unable to add reference to Microsoft Practices libraries - 12-13-2007 , 04:37 PM






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!


Reply With Quote
  #2  
Old   
Cowboy \(Gregory A. Beamer\)
 
Posts: n/a

Default Re: Unable to add reference to Microsoft Practices libraries - 12-13-2007 , 04:42 PM






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

*************************************************
Quote:
Think outside the box!

*************************************************
"MichaelQuinlan" <maquinlan (AT) nospam (DOT) nospam> wrote

Quote:
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!




Reply With Quote
  #3  
Old   
sloan
 
Posts: n/a

Default Re: Unable to add reference to Microsoft Practices libraries - 12-13-2007 , 04:48 PM




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" <maquinlan (AT) nospam (DOT) nospam> wrote

Quote:
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!




Reply With Quote
  #4  
Old   
Peter Bromberg [C# MVP]
 
Posts: n/a

Default RE: Unable to add reference to Microsoft Practices libraries - 12-13-2007 , 04:51 PM



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:

Quote:
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!


Reply With Quote
  #5  
Old   
MichaelQuinlan
 
Posts: n/a

Default Re: Unable to add reference to Microsoft Practices libraries - 12-13-2007 , 04:51 PM



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:

Quote:
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" <maquinlan (AT) nospam (DOT) nospam> wrote in message
news:82778A90-6A8A-4BCB-AC03-DF477190C098 (AT) microsoft (DOT) 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!





Reply With Quote
  #6  
Old   
sloan
 
Posts: n/a

Default Re: Unable to add reference to Microsoft Practices libraries - 12-13-2007 , 05:30 PM



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" <maquinlan (AT) nospam (DOT) nospam> wrote

Quote:
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" <maquinlan (AT) nospam (DOT) nospam> wrote in message
news:82778A90-6A8A-4BCB-AC03-DF477190C098 (AT) microsoft (DOT) 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!







Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.