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
7
votes
1 answer

Different versions of Enterprise Library in one process

We are developing an add-in for Autodesk Inventor. Our software is a bunch of dll assemblies loaded into Inventor at runtime. We have decided to use the Microsoft Enterprise Library 5.0 for logging and exception handling. Now we have a problem,…
jur
  • 513
  • 4
  • 12
7
votes
1 answer

EnterpriseLibrary Error

I'm receiving reports of a rare and intermittent error in our live environment. I have been unsuccessful in my attempts to reproduce it, and the error itself is a slight mystery. Add to that, it seems to be something involving Enterprise Library…
JMV
  • 101
  • 1
  • 5
6
votes
1 answer

Enterprise Library CacheFactory.GetCacheManager Throws Null Ref

I'm trying to convert an application using the 1.1 version of the Enterprise Library Caching block over to the 2.0 version. I think where I'm really having a problem is that the configuration for the different EntLib pieces was split out over…
Brian Sullivan
  • 27,513
  • 23
  • 77
  • 91
6
votes
5 answers

Logging with backup appender

Is there any .NET logging framework that have ability to switch appender if something is wrong with current one. Actually what I want is following: If I'm using database appender and when something goes wrong with database (e.g. server goes down,…
zvjerka24
  • 1,772
  • 1
  • 21
  • 27
6
votes
1 answer

Running With DiagnosticMonitorTraceListener Outside of Azure Compute Emulator

We're using DiagnosticMonitorTraceListener as a general trace listener (primarily for for ASP.NET Health Monitoring) as well as an Enterprise Library 5 listener for exception handling. This works well when running on Azure but it's important that we…
Nariman
  • 6,368
  • 1
  • 35
  • 50
6
votes
5 answers

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…
Jason Bunting
  • 58,249
  • 14
  • 102
  • 93
6
votes
3 answers

Microsoft.Practices.ObjectBuilder2.dll not found after installing Enterprise Lib 5.0

I have recently installed Enterprise library 5.0 but I am unable to find "Microsoft.Practices.ObjectBuilder2.dll". I am working on CALTutorial where I will need this dll as reference. Can anybody answer this? Thanks, Omky
Omkar
  • 2,129
  • 8
  • 33
  • 59
6
votes
1 answer

What is the LogWriter.ShouldLog(LogEntry) method behaviour based on?

What is the LogWriter.ShouldLog(..) method behaviour based on? Or what is the real intention of its usage? Its documentation page is rather sparse and doesn't provide much insight. Quoting it: Queries whether a LogEntry shold[sic] be …
John K
  • 28,441
  • 31
  • 139
  • 229
6
votes
1 answer

EntLib5: Loggin application block not logging to Event Log (exception: type LogWriter cannot be constructed)- Can anyone help?

HI there, I just setup the logging application block part of Enterprise Library 5. I think i have done it correct but its not logging to the event log it errors on the write method and gives me the following exception. The type LogWriter cannot…
6
votes
3 answers

Do common JARs have to be repeated across WARs in an EAR?

I have a JAR file for authorization. I need it for each of my WAR files. All the WAR files are packaged in an EAR file. Do I have to repeat this common JAR in every WAR, or is there a structure for common libraries? So my example looks something…
dacracot
  • 22,002
  • 26
  • 104
  • 152
6
votes
3 answers

Microsoft.Practices.EnterpriseLibrary.Data: execute multiple statements in one transaction

i recently started with an existing project and it works with the Microsoft.Practices.EnterpriseLibrary.Data objects. Now i want to execute multiple stored procedures in one transaction (1:n insert which have to all fail or succeed) But i don't know…
Michel
  • 23,085
  • 46
  • 152
  • 242
6
votes
3 answers

SynchronizationLockException + Logging

I just started with v5 of the enterprise lib and seem to encounter some strange issues. As usually I started with logging. I just added the required references and execute the following code: Logger.Write("test"); Nothing special so far. Checking…
Jaster
  • 8,255
  • 3
  • 34
  • 60
6
votes
2 answers

Custom / Nested XML settings in ServiceConfiguration.cscfg

We're trying to implement some dynamically configurable logging into our Azure application and we're using the enterprise libraries to do so which works fine, however the xml required to facilitate this is more complex than the simple 'appSetting'…
Kindo Malay
  • 237
  • 1
  • 2
  • 10
6
votes
2 answers

If Using Enterprise Library, Is log4net better to log with?

For a project we are using Enterprise Library 5, and will be using several of the blocks. I'm inclined to use the Logging application block since its built into this framework. But I do see a lot of recommendations for log4net, so what have people…
Brian Mains
  • 50,520
  • 35
  • 148
  • 257
6
votes
4 answers

Mocking Enterprise Lib 5 'Database'

Is it possible to mock the enterprise library 5 version of 'Database'? If so... how? There is no IDatabase interface (which is a mystery as I though Microsoft P&P would be more on the ball about testability benefits of exposing such an interface). I…
holsee
  • 1,974
  • 2
  • 27
  • 43