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
3 answers

What exactly is "Reliable" logging?

So, I was talking with a guy the other day about Enterprise Library Logging Application Block and log4net. Something I noticed was that log4net claims: log4net is not reliable. It is a best-effort and fail-stop logging system. Surprisingly, I…
Adam
  • 3,014
  • 5
  • 33
  • 59
6
votes
2 answers

Why do I get System.IO.FileLoadException: Could not load file or assembly, about once a week on my ASP.Net Website?

I have a rather simple internal ASP.Net Website that has issues loading the Microsoft.Practices.EnterpriseLibrary.Data dll about once a week. Here is the Exception message: System.IO.FileLoadException: Could not load file or assembly…
Daryl
  • 18,592
  • 9
  • 78
  • 145
6
votes
6 answers

Cast error on SQLDataReader

My site is using enterprise library v 5.0. Mainly the DAAB. Some functions such as executescalar, executedataset are working as expected. The problems appear when I start to use Readers I have this function in my includes class: Public Function…
Phil
  • 1,811
  • 9
  • 38
  • 60
6
votes
1 answer

RijndaelManaged encrypt replacement of Enterprise Library

I have a question regarding the encryption: basically in my web application I've used Enterprise Library 5.0 where they had a block for cryptography, so basically in the configuration tool provided by them I've registered a block and generated a…
Alnedru
  • 2,573
  • 9
  • 50
  • 88
6
votes
1 answer

Use of undefined keyword value 0x1 for event ApplicationStarted. in EnterpriseLibrary SLAB

I am using Enterprise Library SLAB for Logging but always since coupel of days I am getting error Use of undefined keyword value 0x1 for event ApplicationStarted. It is compiling fine but throwing runtime error just when we try to enable log…
Abhi
  • 5,501
  • 17
  • 78
  • 133
6
votes
1 answer

Azure Web Role with Transient Fault Handling Block exception: The path is too long after being fully qualified

We applied Transient Fault Handling Block for our web role of cloud service, we even didn't write one single line code. When we try to debug our cloud service locally, the exception would show on webpage, like this: The path is too long after being…
6
votes
1 answer

Using Unity Framework & Validation Application Block to Validate Method Parameters

Question Is it posible to have the Validation.Validate() method of the Validation Application Block see each parameter of the IParameterCollection supplied by Unity as my custom UserModel? Background: I am attempting to use both Unity and the…
6
votes
2 answers

Enterprise Library Logging - Remove hyphen from format

I'm using Enterprise Library Logging block in a ASP.NET MVC application. When I write the log message in a text file it always adds 2 rows of hyphens before and after the message: ---------------------------------------- [18/11/2013 03:20:53 p.m.]…
John Cardozo
  • 743
  • 7
  • 10
6
votes
1 answer

Setting a 'category' in the .net enterprise library logging (to event log)

I am writing some logs to the event log using the Microsoft enterprise library Its writes logs away fine but doesnt seem to set the category in the event log. The category appears okay in the message body of the log (if I choose to set that) but…
Matt
  • 3,664
  • 3
  • 33
  • 39
6
votes
2 answers

Upgrade to Enterprise Library 6.0 giving issues with 'EnterpriseLibraryContainer'

After upgrading to Enterprise Library 6.0 I'm having the following problem: private static IUnityContainer container = EnterpriseLibraryContainer.Current.GetInstance(); Cannot resolve EnterpriseLibraryContainer I found another post that speaks…
Jonathan V
  • 63
  • 1
  • 1
  • 4
6
votes
3 answers

Creating a rolling flat log file using Enterprise library

In my web application I am trying to create a log file for logging errors and exceptions, but when I run my application, log file is not getting created in my solution folder or in bin folder. I used the following code. Please help me I am stuck up…
sree
  • 601
  • 5
  • 12
  • 33
6
votes
2 answers

Initialize RetryManager from EnterpriseLibraryContainer not working

I used this code to initialize RetryManager from Enterprise Library: using Microsoft.Practices.EnterpriseLibrary.Common.Configuration; using Microsoft.Practices.EnterpriseLibrary.WindowsAzure.TransientFaultHandling; using…
user1224129
  • 2,759
  • 3
  • 27
  • 29
6
votes
5 answers

Pitfalls for converting a .net 2.0 solution to .net 3.5

We're moving a solution with 20+ projects from .net 2.0 to 3.5 and at the same time moving from Visual Studio 2005 to 2008. We're also at the same time switching from MS Entlib 2.0 to 4.0. Is there any reasons not to let the Visual Studio wizard…
Wiren
  • 477
  • 3
  • 9
6
votes
2 answers

Invalid TraceListenerData type in configuration for Enterprise Library Logging Distributor

I am trying to use the Enterprise Library MSMQ Distributor service to pick up log messages being placed in an MSMQ queue and place them in a database through the standard Database part of the Logging block. However, when I try to start the…
glenatron
  • 11,018
  • 13
  • 64
  • 112
6
votes
2 answers

How to elegantly log contextual information along with every message

I'm looking for some advice on logging. I've written a wrapper called Logger which internally uses Microsoft Enterprise Library 5.0. Currently it enables us to log in this way: Logger.Error(LogCategory.Server, "Some message with some state {0}",…
Nawaz
  • 353,942
  • 115
  • 666
  • 851