enterprise-library

Data Access Layer Strategy

I have a query about the Microsoft's Enterprise Library Data Access Application Block and NHibernate. We are in the designing phase of our Software of Anti Money Laundering. The Criteria is as below: We have Customer Class which contains Account Class in One to Many relationship. The model is as follows: Customer 1->M Accounts The...

Why does Enterprise Library throw intermittent "Data connection failed to open" errors?

...

StringLengthValidator - localization not working

I am validating input to my ASP.NET application using StringLengthValidators, and using the ValidationSummary control to display the error messages. To localize the application, the StringLengthValidators have the MessageTemplateResourceName and MessageTemplateResourceType attributes set. The first time the validator runs, it picks up...

Disabling EnterpriseLibrary integration with VS2008

Does anyone know of a quick way to disable the Enterprise Library integration with VS. The problem is that it latches onto the AppDomain.AssemblyLoad event, and crawls through 30+ projects everytime an assembly get loaded by VS, which happens frequently if you have Workflow projects. VS becomes unusable for a few minutes everytime this h...

using older Data Access Application Block alongside newer Enterprise Library

Is there any reason I can't use an older version of Data Access Application Block (sqlhelper) along with Enterprise Library (if I'm not using the data parts of it?) ...

Help with enterprise library validation results

I'm trying to use Entlib 4's validation blocks but I'm running into a problem clearly identifying invalid properties in the validation results. In the following example, if the City property fails validation I have no way of knowing whether it was the City property of the HomeAddress object or the WorkAddress object. Is there a simple ...

How do I 'globally' catch exceptions thrown in object instances.

I am currently writing a winforms application (C#). I am making use of the Enterprise Library Exception Handling Block, following a fairly standard approach from what I can see. IE : In the Main method of Program.cs I have wired up event handler to Application.ThreadException event etc. This approach works well and handles the applicat...

VAB: can a validator be associated with more than one rule set?

Using the (MS) Enterprise Library, Validation Application Block (VAB), you can include attributes in your code to define rule sets. I have applied the attributes to the properties of a class and I have defined two rule sets (the properties fall into two validation groups). Unfortunatly there is some overlap between the two rule sets (som...

How to use interception with WCF and Unity

I have a WCF service that is setup to be hosted within a unity container. I was intending to use this container to perform method interception. The only issue is I can get my interceptor to fire... first here the def of my interceptor attribute and handler [AttributeUsage(AttributeTargets.Method)] public class PCSecurityAttribute : H...

AS400 Data Connection in ASP.NET

I have an application that will reside within a business2business network that will communicate with our AS400 in our internal network environment. The firewall has been configured to allow the data request through to our AS400, but we are seeing a huge lag time in connection speed and response time. For example what takes less than a ...

Jira using enterprise architecture by OfBiz

The 'open for business project' is an enterprise framework. It so happens Jira uses this, and I was pretty shocked at how much work is involved to pull data for a particular entity (say a issue/bug in Jira's case). Imagine getting a list of all the issues, it has to first get all the columns (or properties) to display for the table col...

Can I change the configuration of the Enterprise Library Logging block at runtime?

Without getting into the discussion of the merits or otherwise of the EntLib logging block, is there any way that I can change it's configuration at runtime? For example, I have the block configured to log General events to a flat file, and Critical events to the event log. Is there any way to change it to log General events to the cons...

Enterprise Library: Logging Block and Email

Does anyone have a tutorial link or an example on how to use the Logging block to send out error email? Jack ...

Is there a reason to NOT use .NET Framework-defined exception classes in your own code?

So, we are using the Enterprise Library 4.1 Exception Handling Application Block to deal with logging/handling our exceptions in a multiple-project application. We have a few custom exceptions and are throwing some exceptions whose classes are defined in the .NET framework's standard class libraries (e.g. ArgumentException, InvalidOperat...

Enterprise Library Exception Handling Application Block and Logging Application Block proper use in ASP.NET

I have a grasp on this application block with ASP.NET, but I feel unsure if I am coding with it properly in ASP.NET. I've looked all over for proper examples of how to use the Enterprise Library Exception Handling Application Block, but only turn up articles for Windows Forms. Could somebody please point me in the right direction for u...

EntLib 4.0: Exception Handling Application Block

I'm just starting to use the Enterprise Library Exception Handling block. It seems a little cumbersome. Do I really have to do try { //Do something with a DirectoryInfo object } catch(DirectoryNotFoundException ex) { bool rethrow = ExceptionPolicy.Handle(ex, _exceptionPolicyName); if(rethrow) throw; } Eve...

Enterprise Library Strong Naming Guidance Package

Dear GOD! For the life of me I can not find the Enterprise Library Strong Naming Guidance Package download for Enterprise Library 4.1 I need this to sign the assemblies to add them to the GAC. Does anybody know where I can find it? I can't find it anywhere on the www.codeplex.com/entlib or www.codeplex.com/entlibcontrib websites. HE...

Using Enterprise Library logging application block in NHibernate

Hi all: We are trying to integrate NHibernate as our OR/M, however, we are currently using Enterprise Library's logging application block. I know that NHibernate uses log4net to log. Does anyone have any example on how to use Enterprise Library to log NHibernate related logs? Thanks ...

Template settings for Entlib logger

I had to move to the entlib logger from log4net. I know what you're thinking? :) Anyways, I am trying to change the default template for the logger to get rid of the useless info - like like priority etc.. But my logs still have it - all those value are either null or default (value-types) in the log entry that's created. Here's the tem...

Enterprise library caching parameters on stored procs?

I'm trying to standardise some data access code with my colleagues. One of the aforementioned colleagues asserts that the EntLib Data Access Block trys to cache parameters on stored proc calls. I've had a look in reflector and there is some evidence that it could be caching them. But I don't think it does in the following situation. ...