Questions tagged [enterprise-library-5]

Microsoft Enterprise Library is a collection of application blocks designed to assist developers with common enterprise development challenges.

Microsoft Enterprise Library is a collection of application blocks designed to assist developers with common enterprise development challenges. Application blocks are a type of guidance, provided as source code that can be used "as is," extended, or modified by developers for use in enterprise development projects.

This release of Enterprise Library includes the following new features and updates:

  • Major architectural refactoring that provides improved testability and maintainability through full support of the dependency injection style of development
  • Dependency injection container independence (Unity ships with Enterprise Library, but you can replace it with a container of your choice)
  • Programmatic configuration support, including a fluent configuration interface and an XSD schema to enable IntelliSense
  • Redesign of the configuration tool to provide:
    • A more usable and intuitive look and feel
    • Extensibility improvements through meta-data driven configuration visualizations that replace the requirement to write design time code
    • A wizard framework that can help to simplify complex configuration tasks
  • Data accessors for more intuitive processing of data query results
  • Asynchronous data access support
  • Honoring validation attributes between Validation Application Block and DataAnnotations
  • Integration with Windows Presentation Foundation (WPF) validation mechanisms
  • Support for complex configuration scenarios, including additive merge from multiple configuration sources and hierarchical merge
  • Optimized cache scavenging
  • Better performance when logging
  • A reduction of the number of assemblies
  • Support for the .NET 4.0 Framework and integration with Microsoft Visual Studio 2010
  • Improvements to Unity

Resources

152 questions
3
votes
1 answer

Semantic Logging Analyzer exception number of WriteEvent arguments and event parameters are different

This fragment makes the Semantic Log Analyzer throw "The number of WriteEvent arguments and event parameters are different in event name 'HandlingCommand'." [NonEvent] public void HandlingCommand(Command command) { if (this.IsEnabled()) { …
gumaflux
  • 330
  • 2
  • 13
3
votes
2 answers

Change Timestamp value in enterprise library exception handling formatter

I am using enterprize library 5.0 with c# for exception handling and for that I am using formatter.Now In my log file Timestamp is not giving the right time. Can I change the value of timestamp in formatter.
3
votes
2 answers

Simple Enterprise Library console application refuses to compile

I just downloaded and installed Microsoft Enterprise Library 5.0. I fired up VS 2010 to play with EL 5 and created a very simple console application. However, it would not compile. I got the following error: The type or namespace name 'Data'…
Vadim
  • 21,044
  • 18
  • 65
  • 101
3
votes
1 answer

Return Bigint in a stored procedure

I have a stored procedure which has to return a bigint as output. below if the definition. In the body, I'm inserting a row in a table and returning the identity using @@Identity in @LogID output variable. Everything works except the return part.…
Ruchin Munjal
  • 45
  • 1
  • 6
3
votes
0 answers

Microsoft Enterprise Library Type Load Exception Couldnot load Microsoft.Practices.EnterpriseLibrary.Common.Configuration.EnterpriseLibraryContainer

I am trying to sort out a friends service. Basically it gets into error as soon as I start it in constructor. Here are the code fragments. public class DefaultCacheManager : ICacheManager { private readonly…
Alag20
  • 161
  • 1
  • 8
3
votes
0 answers

Configuration of System.Runtime.Caching vs Enterprise Library 5 caching block

As part of plans to migrate an existing website from .NET 4 to .NET 4.5.1 we have learned that we will need to move from using Enterprise Library 5 to version 6. We're using the caching block in version 5, but this has been removed from version 6,…
Richard Ev
  • 52,939
  • 59
  • 191
  • 278
3
votes
1 answer

"The type LogWriter cannot be constructed" in web app in new AppDomain

I'm trying to use the Microsoft Enterprise Library 5.0 Logging Application Block in a web application. I can write to the log from the main application, but when I attempt this from a second AppDomain, any attempt to log throws an exception (shown…
3
votes
1 answer

How can I validate multiple object properties and then apply a style with a tooltip on one of my form elements?

This is a WPF/MVVM project. I am using the MS Enterprise Library Validation Application Block v5.0. The requirement is that if the value of a combobox is "Facilities" or "Other" then the Comment field must have a value. That said, I created a…
chad
  • 564
  • 1
  • 4
  • 16
3
votes
1 answer

Enterprise Library 5.0 Logging - rollInterval

Can the Enterprise Library 5.0 Logging Application Block be configured to roll the log file every day at a specified time (e.g. at 3:00 PM)? The relevant options of rollInterval are day and midnight. I'm not sure what the difference is, but midnight…
2
votes
1 answer

Optional output parameter causes InvalidOperationException when no value is submitted with Enterprise lib 5.0

I'm having problem with output Parameters in Microsoft Sequel Server 2008 with Enterprise Library 5.0 I'm calling a procedure from my code (in C#) and it worked fine until I added an optional output parameter to the stored proc to track…
Oofpez
  • 514
  • 1
  • 7
  • 18
2
votes
2 answers

Enterprise Logging not translating environment variables in XML Trace Listener fileName specification

I am using Microsoft Enterprise Library 5.0 Optional Update 1 for logging. I've got a declared section in my app.config file as follows:
2
votes
1 answer

Comma Separated String from a DataReader Column

What is a good way to save a particular column of a DataReader into a comma separated string? For instance here is what I have now: StringBuilder sb = new StringBuilder(); Database db = DatabaseFactory.CreateDatabase(); …
FMFF
  • 1,652
  • 4
  • 32
  • 62
2
votes
1 answer

Enterprise Library Logging 5 - Rolling Flat Files

Is there a way to always have the timestamppattern applied to my current log files? Here is an example of my log file listener from app.config
John
  • 6,503
  • 3
  • 37
  • 58
2
votes
1 answer

Enterprise Library 5.0 Logging Block customization

Using Enterprise Library 5.0 Logging Block in .NET 4.0 which is the only Block I am using I was trying to customize information being logged to include Call Stack, calling Assembly name and perhaps Line Numbers. So I went to text Formatter that I…
Victor
  • 985
  • 2
  • 28
  • 53
2
votes
2 answers

WCF & Enterprise Library - Exception Shielding and Validation Application Block

I've got a WCF service that's using Enterprise Library for its Exception Handling and WCF Validation Integration. They don't seem to work together. What I want is: If my service throws any kind of exception, WCF Exception Shielding will catch this…
Graham Clark
  • 12,886
  • 8
  • 50
  • 82
1
2
3
10 11