Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / December 2007

Tip: Looking for answers? Try searching our database.

Enterprise Library - Class Library Greif.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
AJ - 26 Oct 2007 16:45 GMT
Hi,

I have created a custom membership provider for an ASP.NET web app which
depends of the Enterprise Library (Data, Exception) handling blocks. This
code currently runs from the App_Code folder fine. I now want to separate
this code into its own class library.

I have created the separate class library, and added the necessary references.
However, i noticed the Common & Object Builder DLL's don't get added
automatically like they do in a web app.
So i have been forced to add them manually. In the case of the common.dll it
doesn't even show up in the .NET tab
in the references dialog, so i have had to browse the the directory
containing the src files.

Anyway after doing this, i still get and error when i try and build my class
library :

The type
'Microsoft.Practices.EnterpriseLibrary.Common.Instrumentation.IInstrumentationEventProvider'
is defined in an assembly that is not referenced. You must add a reference to
assembly 'Microsoft.Practices.EnterpriseLibrary.Common, Version=3.1.0.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.

Can anyone please help?

Cheers,
Adam
AJ - 26 Oct 2007 16:58 GMT
Problem solved!

Cheers,
Adam

> Hi,
>
[quoted text clipped - 24 lines]
> Cheers,
> Adam
Neil - 29 Oct 2007 10:46 GMT
> Problem solved!
>
[quoted text clipped - 29 lines]
> > Cheers,
> > Adam
Neil - 29 Oct 2007 10:47 GMT
How did you fix this Adam?

> Problem solved!
>
[quoted text clipped - 29 lines]
> > Cheers,
> > Adam
rocsebastien@gmail.com - 31 Oct 2007 08:39 GMT
Hi , can you please explain how you solved the problem ?

I got the same.

TIA
Neil - 31 Oct 2007 09:49 GMT
I managed to fix this.
It appeared that I had older versions of the "Common.dll" being referenced.

Once I completely removed the DLL, copied over the 3.1.0 version to my
centralised DLL folder and re-referenced this DLL in my projects, the error
was gone.

> Hi , can you please explain how you solved the problem ?
>
> I got the same.
>
> TIA
Derrick Ribilla - 17 Nov 2007 00:10 GMT
Add the "Enterprise Library Shared Library" reference.  This will effectively
add Microsoft.Practices.EnterpriseLibrary.Common to your reference list.
Namret - 06 Dec 2007 09:33 GMT
Thx!!!

> Add the "Enterprise Library Shared Library" reference.  This will effectively
> add Microsoft.Practices.EnterpriseLibrary.Common to your reference list.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.