This project has moved and is read-only. For the latest updates, please go here.

EntLib 5.0?

Topics: User Forum
Jan 12, 2011 at 10:11 PM


Firstly, thanks for providing such a great book. I'm trying to build the NSK project, but am having a little trouble. I think the problem might be that I'm using EntLib 5.0 - should I try to get hold of EntLib 4.1 instead?




Jan 19, 2011 at 7:41 AM

Hi Paul, NSK does use EntLib 5, too: can you describe your problem a little more, please?


Jan 19, 2011 at 8:20 PM

Hi Andy,

Thanks for getting back to me. Here's what I've done:

Downloaded NSK8193

Installed EntLib 5.0

Unloaded the projects I don't think I need right now. The projects that are still loaded are:

  • ManagedDesigns.Northwind.Core
  • ManagedDesigns.Northwind.Services
  • Northwind.Services
  • ManagedDesigns.Northwind.Data
  • ManagedDesigns.Northwind.Data.DbProviderBase
  • ManagedDesigns.Northwind.Data.SqlServer
  • ManagedDesigns.Northwind.Web.UI

Then tried to build. The main error I get is:

Error    1    'Microsoft.Practices.EnterpriseLibrary.Validation.Validators.StringLengthValidatorAttribute' is not an attribute class    D:\Work\Projects\Tutorials\NSK-81993\vs2008-fx3.5\src\ManagedDesigns.Northwind.Entities\AddressInfo.cs    7    10    ManagedDesigns.Northwind.Core

The first example occurs, as you can see, with the [StringLengthValidator(60)] attribute of AddressInfo.cs. Is this something you've seen before?




Jan 20, 2011 at 9:42 AM

Hi Paul, it seems you’re using a now-quite-old codebase which requires EntLib 4.1: did you consider to go for a newer release of NSK?