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

How to deploy an application that uses enterprise library

I have an application that uses unity and the logging application block. I recent checked-out the application from the repository after these assemblies were added and I got a few error. Eventually I installed enterprise library on my pc and it's…
David
  • 5,403
  • 15
  • 42
  • 72
1
vote
1 answer

Enterprise Library 5 database logging to flat file works, database does not

I am trying to change an existing Enterprise Library 5 Logging system to use a Database rather than flat file provider. I have used the configuration tool to generate the relevant configuration sections and added them to my configuration file, but…
glenatron
  • 11,018
  • 13
  • 64
  • 112
1
vote
1 answer

Using Unity DI with multiple assemblies

I am in the process of developing some reusable components for a web based CMS platform, and wanted to investigate using Unity instead of Spring.NET. In solution #1, I have developed various components in a tiered architecture. Using Spring.NET, I…
1
vote
1 answer

"Failed to find or load the registered .Net Framework Data Provider" with IBM DB2 .NET Data Provider

I'm getting this error on our UAT server after deploying an application. It works fine on other environments including DEV & QA servers. UAT Server is windows 2008 R2 with SP2 64bit, .NET 4.0 and IBM .Net Data Provider DEV & QA boxes have windows…
1
vote
1 answer

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

I am using a class library with an app.config and using the dll reference of this library in my web project and I am getting the error shown in the title. Here is the code in my class library and app.config public List
bala3569
  • 10,832
  • 28
  • 102
  • 146
1
vote
3 answers

Enterprise Library Logging Extended Properties Fails on Server

I've got a standard enterprise library text formatter, with the default formatting. The log file is properly created, but remains empty. If I remove the last formatting option, with the extended properties (see below) it starts working. If I put it…
Anders Abel
  • 67,989
  • 17
  • 150
  • 217
1
vote
0 answers

How to manage logs' preservation period using RollingFlatFileTraceListener on Enterprise Library Logging Application Block?

Enterprise Library(v5.0) Logging Application Block's Rolling Flat File Trace Listener has options to roll over the log files. ( http://msdn.microsoft.com/en-us/library/ff664768(v=pandp.50)#trace_rolling ) They are 'Time' and 'File Size'. I can…
1
vote
1 answer

Enterprise Library 5.0 Logging using CustomTraceListener and ConfigurationSourceBuilder

I'm trying to build a logging library that uses Enterprise Library 5.0 Logging Code Block and I've been able to create a CustomTraceListener that works when the configuration comes from the config file but when I try to configure it via the…
cyberman
  • 33
  • 1
  • 6
1
vote
2 answers

Are there any good examples of Exception Handling Block of Enterprise Library 5.0

I'm using Enterprise Libray 5.0 version. I'm working on its Exception Handling Block. For this to understand Exception Handling Block I downloaded StockTraderRI Application - (Example Application of Exception Handling). But it uses PRISM…
R76
  • 446
  • 6
  • 25
1
vote
2 answers

Need help on setting Unity interception

First, I never used Unity before... I want to introduce Tracing / Logging to our project through unity interception. The project is considerably big (~30000 files). The goal is to trace performance / execution period every time we try to call…
0
votes
2 answers

Change Location and Name of Log file at runtime, based on GUID passed in QueryString

Right now whenever I run application It creates a file (file name specified in Web.Config Logging Section). What I want is to change the path and name of the file (based on GUID passing as query sting) at run time. I did some research, but examples…
Emahum
  • 15
  • 7
0
votes
1 answer

.Net Unit test EnterpriseLibrary.ExceptionHandling issue

I am using EnterpriseLibrary.ExceptionHandling Version 5 for error handling. Working perfect in project. But when run all unittest in project getting error: Strong name verification failed for the instrumented assembly…
Arvind
  • 61
  • 1
  • 3
  • 9
0
votes
2 answers

Getting "ExecuteXmlReader: Connection property has not been initialized" using Enterprise Library 5.0

I have the following code: public string GetClients() { string outputxml = string.Empty; Database db = DatabaseFactory.CreateDatabase("MyDatabase"); SqlCommand sqlcmd = db.GetSqlStringCommand("SELECT CLIENTID, CLIENTNAME…
FMFF
  • 1,652
  • 4
  • 32
  • 62
0
votes
1 answer

MS Entlib 5: How to solve error message "Processing of the message failed"

I'm using Microsoft enterprise library 5.0 to save logs. I saved Trace Event Type(Warning and Error) to file using RollingFlatFile ErrorTraceListener, found error message like "Message: Processing of the message failed. See summary information…
0
votes
1 answer

Listener Output according to Priority

I am currently using the Logging framework in Enterprise Library. Does anyone know how to use Priority to control the output for each Listener? For example, this listener only output the information to the target if the Priority of the log is higher…
kyle
  • 99
  • 1
  • 3