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

1587 questions
136
votes
8 answers

Enterprise Library Unity vs Other IoC Containers

What's pros and cons of using Enterprise Library Unity vs other IoC containers (Windsor, Spring.Net, Autofac ..)?
Yoann. B
  • 10,667
  • 18
  • 65
  • 110
75
votes
3 answers

Where does Microsoft.Practices.ServiceLocation come from?

Does any one know where Microsoft.Practices.ServiceLocation comes from? This is a namespace and a dll used in MS EnterpriseLibrary. Admittedly it's a very simple dll with just a handful of classes (using reflector), but I can't find published source…
Andrew Savinykh
  • 22,530
  • 13
  • 90
  • 143
64
votes
8 answers

Can Unity be made to not throw SynchronizationLockException all the time?

The Unity dependency injection container has what seems to be a widely known issue where the SynchronizedLifetimeManager will often cause the Monitor.Exit method to throw a SynchronizationLockException which is then caught and ignored. This is a…
Rory MacLeod
  • 10,562
  • 7
  • 38
  • 43
56
votes
2 answers

WCF ExceptionShielding Error ID does not match up with handlingInstanceId passed to Handler

I have the following decorated on my service when a fault exception is thrown, my policy picks up the error and logs in just fine. It takes the handlingInstance Id and logs it along with the error for…
wakurth
  • 1,644
  • 1
  • 20
  • 39
47
votes
6 answers

How to resolve "Could not find schema information for the element/attribute "?

In visual studio, I have an asp.net 3.5 project that is using MS Enterprise Library 4.0 application blocks. When I have my web config file open, my Error list fills up with 99 messages with things like Could not find schema information for the…
StingyJack
  • 17,990
  • 7
  • 58
  • 115
40
votes
6 answers

When should I use Tracing vs Logger.NET, Enterprise Library, log4net or Ukadc.Diagnostics?

How do I choose between standard tracing, Logger.NET, Enterprise Library, log4net or Ukadc.Diagnostics? Is there a situation where one is more appropriate than the other? ... what would that be? (ASP.NET, console app, Azure Cloud, SOHO,…
halfbit
  • 54,462
  • 46
  • 195
  • 426
35
votes
10 answers

How to effectively log asynchronously?

I am using Enterprise Library 4 on one of my projects for logging (and other purposes). I've noticed that there is some cost to the logging that I am doing that I can mitigate by doing the logging on a separate thread. The way I am doing this now…
Eric Schoonover
  • 44,080
  • 43
  • 148
  • 200
29
votes
4 answers

System.Web.Caching vs. Enterprise Library Caching Block

For a .NET component that will be used in both web applications and rich client applications, there seem to be two obvious options for caching: System.Web.Caching or the Ent. Lib. Caching Block. What do you use? Why? System.Web.Caching Is this…
ESV
  • 7,280
  • 4
  • 36
  • 29
28
votes
1 answer

Performance of system.runtime.caching

I have compared the performance of system.runtime.caching in .NET 4.0 and the Enterprise Library Caching Block and to my surprise it performs terribly in comparison when fetching large data collections from cache items. Enterprise Library fetches…
robertherber
  • 804
  • 1
  • 10
  • 20
26
votes
5 answers

Enterprise Logging Block vs NLog vs log4net

I need to use a logging library in my project and considering between Enterprise Logging Block vs NLog vs log4net. I found some links on the comparison but most of those are quite old and complaint about things like no new versions of log4net for…
imak
  • 6,109
  • 7
  • 43
  • 71
25
votes
10 answers

Continue with Microsoft Enterprise Library?

I've been using the Microsoft Enterprise Library since before it was labeled as such for abstracted data access, in place of writing my own DAL. Originally I was just importing one file (sqlhelper.cs) into my projects, but then the later releases…
Josh
  • 7,099
  • 11
  • 65
  • 109
24
votes
2 answers

Can not install NuGet package

I am trying to add the Unity package to my solution, but I keep receiving the listed message: Attempting to resolve dependency 'Unity (≥ 3.5.1404.0)'. 'Unity' already has a dependency defined for 'CommonServiceLocator'. Any Idea how to fix this?
Jaster
  • 7,431
  • 2
  • 31
  • 54
23
votes
10 answers

Are you using the Microsoft Enterprise Library?

In my shop we currently develop what I would consider small to medium sized projects. We have been investigating the Enterprise Library and how it may be able to help us in development. I have particularly been looking at the Logging block and…
tribus
  • 1,100
  • 1
  • 8
  • 25
23
votes
4 answers

Advantages and disadvantages of using Enterprise Library

Im just starting a project and since this project is personal I was wondering what are the advantages of using Enterprise Library? We use the version 2 for several projects in the office but im not quite sure (aside of the good practices) of the…
Gustavo Rubio
  • 8,870
  • 6
  • 36
  • 56
22
votes
2 answers

How do I create a hierarchy of lognames in the Windows event system?

I am logging messages using Enterprise Library. I want some of these (typically errors and warnings) to be passed to the Windows event-system). I today route these via entlib.config. This solution works and so far, so good. But, I have more…
Spiralis
  • 2,912
  • 1
  • 35
  • 48
1
2 3
99 100