This project has moved. For the latest updates, please go here.

EntLib 5.0?

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

Hi,

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?

Thanks,

Paul

 

Coordinator
Jan 19, 2011 at 6:41 AM

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

.A

Jan 19, 2011 at 7: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?

Regards,

Paul

 

Coordinator
Jan 20, 2011 at 8: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?

Best,
.A