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

Issue with log file name in EntLib5

I have Windows Forms application which writes log on a daily basis with this format for filename yyyy-mm-dd-appName.log The settings are what comes out of the box from EntLib. I have only one trace listener. The issue is if the user running the…
Codehelp
  • 4,157
  • 9
  • 59
  • 96
0
votes
1 answer

Enterprise Library Validation Ruleset issue for nested objects

I'm having a problem applying Rulesets when validating objects with nested objects when using Enterpirse Library validation. If I have the following objects public class Person { [ObjectValidator] [ObjectValidator(Ruleset = "A")] public…
Boob
  • 1,023
  • 4
  • 13
  • 20
0
votes
1 answer

WPF, Prism, Unitybootstrapper, and Enterprise Library Logging setup throwing LogWriter exception

I'm just trying to get up off the ground and get used to working with Prism, in my bootstrapper I have: public class Bootstrapper : UnityBootstrapper { private readonly EnterpriseLibraryLoggerAdapter _logger = new…
james
  • 408
  • 7
  • 22
0
votes
1 answer

Set maximum life of entity in Enterprise library's cache block?

In my application I want to add some items to my cache, but these items should be at most one day old. Is there an OOTB way to set the maximum life for certain objects?
Boris Callens
  • 90,659
  • 85
  • 207
  • 305
0
votes
1 answer

how to combine PolicyInjection.Create and UnityContainer.RegisterType?

My web application uses UnityContainer. I want to add Policy injection. How can I use both of them side by side? meaning who should be responsible of the types registration? policy injsection: public ActionResult Index() { var model…
Elad Benda
  • 35,076
  • 87
  • 265
  • 471
0
votes
0 answers

enterprise library causes slowness?

I have added Enterprise Libarary cache to my web application. My web-services becomes really slow after few hundreds of requests (simulated with fiddler). after a few hours the performance is good again. does this can lead me to think of caching…
Elad Benda
  • 35,076
  • 87
  • 265
  • 471
0
votes
1 answer

Caching dimension and attribute details

I am using ASP.NET MVC 3.0 and use ADOMD class to get the dimension names and attribute names. This is a heavy operation and multiple users are using this application. I am wondering which is the best caching technique I can use? I want to create a…
SharpCoder
  • 18,279
  • 43
  • 153
  • 249
0
votes
0 answers

Eager loading and detaching EF context

I want to retrieve entities using EF. I then save them in enterprise_library_cache I get sometimes an error "ObjectContext was disposed already" I'm uging using at a very high leve - one per request, but I guess the entities are used after thier…
Elad Benda
  • 35,076
  • 87
  • 265
  • 471
0
votes
1 answer

How to save EF in a cache layer?

I'm using Entity Framework. I save the object in an MS_library cache manager. However I now encounter a problem: when I retreieve this object from the cache its ContextObj is already disposed. How can I fix this without mapping each entity to my…
Elad Benda
  • 35,076
  • 87
  • 265
  • 471
0
votes
1 answer

How can I save a rolling flat file trace listener on another machine in LAN?

Hi I'm using Enterprise Library 5, I defined rolling flat file trace listener, to save my logs to a file, how can I address this file to be saved on another machine on LAN?
Masoud
  • 8,020
  • 12
  • 62
  • 123
0
votes
1 answer

Enterprise Library 5 exception block doesn't write log to DB when i add some additional data to exeption.Data

I'm using Enterprise library 5 for managing Exception handling, logging. I set 2 Handler for All Exceptions in default Policy of Exception Handling Settings,first log Exception in DB and second Wrap handler and Throw New Exception. and i wrote this…
Masoud
  • 8,020
  • 12
  • 62
  • 123
0
votes
2 answers

enterprise library external config with custom listener

We have been using Enterprise Library 3.1 to log exceptions to external files using our own custom listener. Recently we needed to create a class library that uses our custom listener but this class library will be called from a vendor application…
goroth
  • 2,510
  • 5
  • 35
  • 66
0
votes
1 answer

Extended properties in Enterprise Library Logging Block

I'm using Enterprise Library 5 Logging block for logging in my windows application, also i defined some extended properties for my log entry, when i define a Database trace listener, and use it to log my message, where are saved my extended…
Masoud
  • 8,020
  • 12
  • 62
  • 123
0
votes
0 answers

many cache or many adaptor

I have an architecture question: In my application we have 4 DataModels. We want to save each of them in the cache. The question is which way is better: a. Creating many implementations of ICache with set and get b. Creating many…
Elad Benda
  • 35,076
  • 87
  • 265
  • 471
0
votes
2 answers

Event Log written as Warning instead of Error

I'm using EntLib 4.1 for logging. When I have an exception handled in the Application_Error of Global.asax.cs, I log the error with a category of 'Error'. I assumed that the event log type would be 'Error', but instead the event log entry is written…
Even Mien
  • 44,393
  • 43
  • 115
  • 119