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
1
vote
4 answers

What are the possible issues of using single static instance of the de EnterpriseLibrary Database class for a DataLayer library?

I am doing a refactoring of many projects and I want to group together all the methods that access the database into a DataLayer library (instead of each proyect having its own class that access the database) This is the approach that I am doing…
Mauricio Gracia Gutierrez
  • 10,288
  • 6
  • 68
  • 99
1
vote
1 answer

Microsoft Enterprise Library Logging Application Block Formatting Incorrectly

We're using MS Enterprise Library 5.0 Logging in our web site. And when an exception goes unhandled, we'd like to log it along with a piece of contextual information to assist in debugging the issue. So, we've got an HttpModule that sits atop the…
Nicholas Carey
  • 71,308
  • 16
  • 93
  • 135
1
vote
0 answers

Enterprise Library 6.0 - exceptional handling block-The configuration section for Exception Handling cannot be found in the configuration source

we are using enterprise library 6.0- exceptional handling block and configuration console for defining policy. The following code has been generated in app.config file for the defined policy
madhu
  • 71
  • 1
  • 11
1
vote
1 answer

Prevent Enterprise library logging from adding default values to log

I am trying to customize Enterprise library logging by adding a formatter inside the app.config file. The problem is that the logging API dumps additional information along with the item I specified in the formatter. Here is the App.config…
bobbyalex
  • 2,681
  • 3
  • 30
  • 51
1
vote
0 answers

Enterprise Library Validation Application Block validate object to relative object in hierarchy

I have a kind of hierarchycal class, meaning that it contains collections of user defined objects. I want to be able to apply validation at child level but referencing some properties in the parent level. Is there a way to do this with the build in…
1
vote
1 answer

Unit testing Enterprise Library "Logger" Facade

I'm writing an adapter for Enterprise Library Logging and as per our coding standards, need a way to unit test. The interface and implementation is simple, but I need a way to check to see that Logger.Write has been called with certain parameters on…
PuLSe
  • 21
  • 4
1
vote
2 answers

Enterprise Library 5.0 don't show namespace Microsoft.Practices.EnterpriseLibrary.Data

I was using Visual Studio 2008 with Enterprise Library 4.0. It is working fine and showing namespace Microsoft.Practices.EnterpriseLibrary.Data. Now I installed VS 2010 and Enterprise Library 5.0.(because 4.0 sowsn't…
1
vote
0 answers

Using Microsoft Enterprise Library 5.0 Logging Provider for Service Stack

I have a project based on ServiceStack framework and I want to use the Logging provider for Microsoft Enterprise Library 5.0, here are the steps I followed: (1) Installed the Service Logging provider for MS Enterprise Library 5.0: …
1
vote
0 answers

Enterprise Library Logging Block not logging events in Web-Api MVC 4 Azure Web role

I am having some issue with Logging events in Application log in Web Api Web role in Azure environment. When debugging in Local machine I am able to log all events in my event log but once hosting the same application in Azure environment no events…
1
vote
2 answers

Get the file name of the current log file Enterprise Library 5.0

In MS Enterprise Library 5.0, Logging application block, at runtime, Can I get the name of the log file (Flat File Listener) to which the log is going to?
ViV
  • 1,998
  • 8
  • 27
  • 54
1
vote
1 answer

Rolling Listener and Midnight filename not correct

I am using RollingFlatFileTraceListenerData with Enterprise 5 and set the rollingInterval to Midnight. The current log file is: myapplication.log The log file rotates every midnight (local server time), say the clock reaches March 8, 2013…
userb00
  • 589
  • 1
  • 8
  • 16
1
vote
1 answer

How do I Include the TraceOutputOptions in the output of Enterprise Library Logging

This is wrecking my head and the documentation seems to be non-existent for this library. I have a Rolling Flat file listener... I want to include the callstack in any messages that get written to the listener.
Eoin Campbell
  • 43,500
  • 17
  • 101
  • 157
1
vote
1 answer

How to store the stacktrace in the database on Error with Microsoft Logging Application Block

Hi I have a database trace listener and I would like to log the stack trace on the database when I get an error. I can add the stack trace to the message pretty easily but I would prefer to add it to another column in the database table. How would I…
David
  • 5,403
  • 15
  • 42
  • 72
1
vote
1 answer

Fallback case handling using Microsoft Application Logging Block during runtime C#

Please let me know your thoughts on the below query, During runtime, if I have to change the path where logs are written to a default path, how to implement the same using Microsoft Logging Application Block? Assume, I'm writing the logs to a shared…
1
vote
0 answers

Activation error occured while trying to get instance of type Database, key "ConnString"

Am trying to connect to database from Microsoft Project Server database with Enterprise Library 5.0. I included all the DLL references and able to deploy the application without any issues. However, when am trying to create a project its failing…
user1227035
  • 203
  • 1
  • 7
  • 19