Questions tagged [enterprise-library-6]

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 their development projects.

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 their development projects.

http://msdn.microsoft.com/en-us/library/dn169621.aspx

Enterprise Library 6 – April 2013

Enterprise Library consists of reusable software components that are designed to assist developers with common enterprise development challenges. It includes a collection of functional application blocks addressing specific cross-cutting concerns such as data access, logging, or validation; and wiring blocks, Unity and the Interception/Policy Injection Application Block, designed to help implement more loosely coupled, testable, and maintainable software systems.

Different applications have different requirements, and you will find that not every application block is useful in every application that you build. Before using an application block, you should have a good understanding of your application requirements and of the scenarios that the application block is designed to address.

Microsoft Enterprise Library 6 contains the following application blocks:

  • Data Access Application Block. Developers can use this application block to incorporate standard database functionality in their applications, including both synchronous and asynchronous data access and returning data in a range of formats.
  • Exception Handling Application Block. Developers and policy makers can use this application block to create a consistent strategy for processing exceptions that occur throughout the architectural layers of enterprise applications.
  • Logging Application Block. Developers can use this application block to include logging functionality for a wide range of logging targets in their applications. This release adds asynchronous logging capabilities.
  • Policy Injection Application Block. Powered by the Interception mechanism built into Unity, this application block can be used to implement interception policies to streamline the implementation of common features, such as logging, caching, exception handling, and validation, across a system.
  • Semantic Logging Application Block. This application block provides a set of destinations (sinks) to persist application events published using a subclass of the EventSource class from the System.Diagnostics.Tracing namespace. Sinks include Windows Azure table storage, SQL Server databases, and flat files with several formats and rolling capabilities. Developers can extend the block by creating custom formatters and sinks. For those sinks that can store structured data, the block preserves the full structure of the event payload in order to facilitate analyzing or processing the logged data. Events can be persisted in-process or collected and persisted out-of-process in a separate service.
  • Transient Fault Handling Application Block. This application block makes on-premises or cloud applications more resilient to transient failures by providing intelligent retry logic mechanisms.
  • Unity Application Block. Developers can use this application block as a lightweight and extensible dependency injection container with support for constructor, property, and method call injection, as well as instance and type interception. This release adds support for Windows Store apps as well as the registration by convention feature to ease the task of configuring Unity.
  • Validation Application Block. Developers can use this application block to create validation rules for business objects that can be used across different layers of their applications.

Enterprise Library also includes a set of core functions for declarative configuration support.

63 questions
2
votes
1 answer

Enterprise Library Exception Handling 6.0 XML Logging not writing File

I'm trying to setup the Enterprise Library Exception Handling 6.0 to log errors using the XmlExceptionFormatter in the Enterprise Library Logging Application Block. I'm not receiving any errors, and I can get the Logging to work by itself. Here is…
user2896050
2
votes
1 answer

Enterprise Library 6 Validation Not Reading From Configuration?

Enterprise Library 5 reads from my app.config and validates perfectly. With the following references: Microsoft.Practices.EnterpriseLibrary.Common v 5.0.414.0 Microsoft.Practices.EnterpriseLibrary.Validation v 5.0.414.0 and the following…
2
votes
1 answer

How to add extended properties to Enterprise Library Tracer?

I am using Enterprise Library 6 to implement logging, and user Tracing on an ASP.NET MVC 4 web application. I am using Tracers to achieve this, and I am writing LogEntries into a database. This works fine, but now, I want to add some extra info to…
1
vote
1 answer

IBM DB2 Core: Connection string for ASP.NET Core 2.1 and Microsoft Enterprise Libraries

I'm using this Microsoft.EnterpriseLibrary port for .Net Core. It requires a configuration file app.config with the connection string specified in it. I tried using the same connection string I use in another working project, but it doesn't work…
1
vote
1 answer

ASP.NET Core 2.0 Configuration Binding

I am using Visual Studio 2017, Version 15.7.2 and working with an answer in the following link: net core 1 (dnx 4.5.1) with enterpriselibrary 6 - setting up the connection string public class DataConfiguration { public string DefaultDatabase {…
Momenee
  • 31
  • 4
1
vote
0 answers

Empty the log file every time I write with Enterprise Library Logging

I have Enterprise Library Logging used in my project which is working fine, but I need only the last entry to be saved at any time. Is there any configuration for that? Below is my current configuration.
samithagun
  • 664
  • 11
  • 25
1
vote
1 answer

Migrate EnterpriseLibrary v5 to v6 and .Net framework 3.5 to 4.6.2

There is a requirement of migrating our ASP.Net application(3.5 framework) to .Net framework 4.6.2. EnterpriseLibrary v5 was used and we are migrating/replacing to EL v6 using Nuget manager in the migrated ASP.Net project(4.6.2 framework). I am…
1
vote
1 answer

How to rebuild Enterprise Library 6 on Win 8 and VS2015

I have customized the Enterprise Library and now want to rebuild it, but I get some errors when executing the BuildLibrary.bat (Scripts folder) from Developer Command Prompt for VS2015. Environment: Win 8 VS2015 Two issues: 1.) Could not load…
1
vote
2 answers

Disable logging on FileConfigurationSourceChanged - LogEnabledFilter

I want Administrators to enable/disable logging at runtime by changing the enabled property of the LogEnabledFilter in the config. There are several threads on SO that explain workarounds, but I want it this way. I tried to change the Logging…
Legends
  • 21,202
  • 16
  • 97
  • 123
1
vote
2 answers

Upgrading Application from Enterprise Library 5 to 6

I am upgrading an existing application from 5 to 6. My application is a .NET web application. I rely on Enterprise library to log any errors to the database (sql server). My application also uses a custom database listener and a custom Logging…
Chris
  • 795
  • 2
  • 12
  • 27
1
vote
0 answers

Rolling XML log file Enterprise Library 6

I have used XML log files and rolling flat files as my log destinations using respective TraceListeners in enterprise library. I now need a rolling XML log file. Can I implementing a custom listener which creates a rolling XML log file? Can you…
ViV
  • 1,998
  • 8
  • 27
  • 54
1
vote
0 answers

Want t use Exception Handling Block for Enterprise Library 6.0. Can anyone tell me all necessary step or it is same as in EL 4.0

I have got some example regarding Enterprise Library 4.0 so i have started to develop exception handling blocks same as in 4.0 but I am not getting exception handling. Can anyone say about all necessary steps to use Enterprise Library for Exception…
1
vote
0 answers

EnterpriseLibrary flat file logging not updating modified date

Observed Behavior: The log files date modified property does not update when new log entries are written to the file. Expected Behavior: The date modified property is updated as new entries are added to the file. Use Case: I am attempting to employ…
Mushkov
  • 451
  • 4
  • 5
1
vote
2 answers

Enterprise Library 6 - dynamically change log file name

Is it possible to dynamically set log folder and file name in C# which overrides the config value(file name) in the Listeners section of logging configuration? Tried to follow the below link but it is applicable only for EL 5 Log messages going to…
1
vote
1 answer

Enterprise Library 6.0 Data Access issue with GetStoredProcCommand

I am trying to build data access layer with Enterprise Library 6.0 Data block. below is my config file