Questions tagged [enterprise-library]

Microsoft Enterprise Library is a collection of application blocks and core infrastructure designed to assist developers with common enterprise development challenges such as logging, validation, data access, etc.

Microsoft Enterprise Library consists of a collection of application blocks and core infrastructure. All of these are reusable software components designed to assist developers with common enterprise development challenges. It also comes with a lot of guidance, including the Developer's Guide, MSDN documentation, Hands-on Labs, Videos and Demos.

Enterprise Library 6 contains the following:

  • Data Access Application Block
  • Exception Handling Application Block
  • Logging Application Block
  • Validation Application Block
  • Policy Injection Application Block
  • Unity Dependency Injection Container
  • Semantic Logging Application Block (SLAB)
  • Transient Fault Handling Application Block ("Topaz")

Sites

Books

enter image description here

1586 questions
6
votes
1 answer

Exception.Data info is missing in EntLib log

How do I get the Exception Handling Application Block (EHAB) to write the values from the Exception.Data property in the log? try { // ... } catch (Exception ex) { ex.Data.Add("Hello", "World"); throw ex; } The exception is…
Jakob Gade
  • 12,319
  • 15
  • 70
  • 118
6
votes
2 answers

Installing Microsoft Enterprise Libraries and DatabaseFactory

I'm attempting to use the DatabaseFactory method from the Microsoft Enterprise Library. using Microsoft.Practices.EnterpriseLibrary.Data; The error I get is: The type or namespace 'Practices' does not exist in the namespace Microsoft I tried going…
LoganFrederick
  • 317
  • 2
  • 8
  • 19
6
votes
1 answer

Resolving Instances with Delegates in Unity

Has Unity, since February of 2011, improved this delegate story to achieve parity with StructureMap?
Brent Arias
  • 29,277
  • 40
  • 133
  • 234
6
votes
2 answers

How do I upgrade Enterprise Library to the latest version?

I am currently using Enterprise Library's exception logging functionality in several of my apps. A while back, I installed Enterprise Library onto my machine so that I could launch the configuration utility from my Visual Studio toolbar. Everything…
SouthShoreAK
  • 4,176
  • 2
  • 26
  • 48
5
votes
3 answers

Testing Code that is dependency on Enterprise Library even though it doesn't provide interfaces?

Maybe I'm showing my lack of understanding of dependency injection and testing, but I don't understand how using dependency injection with classes that don't implement interfaces helps me at all with testing? For instance, in the Enterprise Library…
Bob Wintemberg
  • 3,212
  • 6
  • 34
  • 44
5
votes
3 answers

Why does IDataReader lose a row?

I am facing this problem. I have a stored procedure which returns 6 rows when I execute it. But when I am retrieving the rows in my app by using ExecuteReader, it only returns only 5 rows. Why is it losing a row?? My stored procedure consists of 5…
joshua
  • 2,371
  • 2
  • 29
  • 58
5
votes
2 answers

does enterprise library 5.0 cache mappings between datareader and custom classes for accessor methods

Wanted to know if the Accessor methods of Enterprise Library 5.0 cache the fields of datareader as well as custom classes for performance such that it does not look up field names on custom classes using reflections and does not look up field names…
Raj
  • 6,810
  • 6
  • 48
  • 56
5
votes
1 answer

Entity Framework 4.1 vs Enterprise Data Application Block Maximum Performance

Problem scope: I want to use EF4.1 without any trade offs to the speed and reliability of the Enterprise Library Data Access Block that I know and trust. Thanks to lots of Stackoverflow links and blogs about EF performance tuning I'm posting this…
TheDev6
  • 882
  • 9
  • 17
5
votes
1 answer

System.ServiceModel.Security.MessageSecurityException occuring under ExceptionShielding

We are using the Enterprise Library 4.1 Exception Handling Application Block's ExceptionShielding feature in combination with a custom RoleProvider with our WCF services. When the RoleProvider determines an user is not in a role and returns false…
Jason
5
votes
4 answers

Error in "loggingConfiguration" by EnterpriseLibrary.Logging

I have a WPF app using Enterprise Library.Logging 5, .NET Framework 4.0 Client Profile I used of logging by Database logic. Also add reference to 3 dlls to…
Ehsan
  • 3,431
  • 8
  • 50
  • 70
5
votes
3 answers

What do you do if your error logging fails, and how do you test that its working in production?

What do you do if you're error logging code fails? How do you make sure that its currently working? How do you know if its not working? How do you test that its working in a production environment? Should I throw an exception if all else…
John B
  • 20,062
  • 35
  • 120
  • 170
5
votes
3 answers

Enterprise Library Logging: Custom trace listener which sends messages to arbitrary WCF endpoint

I'm trying to write a custom trace listener for Enterprise Library Logging which sends all log messages to an arbitrary WCF endpoint. The idea behind this is that I can set up a simple console app, etc at the other end which prints out all log…
Jacobs Data Solutions
  • 4,850
  • 4
  • 33
  • 38
5
votes
1 answer

Entreprise Library Rolling flat file is not rolling

I'm trying to rotate log files, one per day of week and this configuration file is not working. If I change it to rotate instead of midnight to minute it only records one single file with one minute duration. No new files are being generated. Are…
Pedro Pereira
  • 480
  • 5
  • 12
5
votes
6 answers

.Net 3.5 Dll's in a .Net 4.0 application any issues

We are planning to move a legacy application which uses enterprise library 4.1 which uses .Net 3.5 in a .Net 4.0 web application. We are wondering will this cause any performance problems? Will the .net 3.5 code run in a different application pool?
Shiraz Bhaiji
  • 64,065
  • 34
  • 143
  • 252
5
votes
2 answers

Enterprise Library logging - how to get the configured logging level at runtime?

We're using Enterprise Library 4.1 for logging (and exception handling/cryptography). Does anyone know a good way of determining the configured logging level at runtime? I've written a LogUtility class to to make the logging calls, and am calling it…
StephenH
  • 55
  • 1
  • 4