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

Enterprise library not logging severity correctly

I have a problem with enterprise library 5. It's writing to the event log all the information I want it to write, however, it is not respecting the severity settings I configure. My exception handling configuration block looks like…
iggymoran
  • 4,059
  • 2
  • 21
  • 26
1
vote
2 answers

Programatically update a configuration within a container

In my app I ask the user which database they want to connect to and I was writing it back into EL5.0 like this: var builder = new ConfigurationSourceBuilder(); builder.ConfigureData() .ForDatabaseNamed("UserDatabase") …
1
vote
1 answer

Enterprise Library Fluent API and Rolling Log Files Not Rolling

I am using the Fluent API to handle various configuration options for Logging using EntLib. I am building up the loggingConfiguration section manually in code. It seems to work great except that the RollingFlatFileTraceListener doesn't actually Roll…
mainedev
  • 11
  • 3
1
vote
2 answers

DAAB and ref cursors, Why no up to date tutorials?

Why are there no up to date tutorials books, or anything like that online for working with enterprise library 5.0 and Oracle ref cursors? Is there no one on Earth who needs help with that? I am absolutely dumbfounded. There was a way to do it in…
SoftwareSavant
  • 9,467
  • 27
  • 121
  • 195
1
vote
0 answers

Custom tokens in Enterprise library logging using flat file listener and text formatter

I am new to enterprise library.We are trying to log our application using enterprise library 5.0. We are using flat file listener method of logging and text formatter as log message formatter. We want to log all our methods and method parameters. So…
Mahesh KP
  • 6,248
  • 13
  • 50
  • 71
1
vote
1 answer

EntLib Validation: Localization without resources - Validation from configuration

I would like to use my own localization implementation instead of the default resource file system the framework provides. I need also to configure the validators in a configuration file. My problem is that I don't know how to access the Validator…
friskm
  • 366
  • 3
  • 7
1
vote
1 answer

Enterprise Library 5 - execute non query negative result

I have the following code using microsoft enterprise library 5: Database database = DatabaseFactory.CreateDatabase("myConStr"); int rowsAffected = database.ExecuteNonQuery("[DeleteCustomer]", cboCustomers.SelectedItem.ToString()); The myConStr is…
lmsasu
  • 7,459
  • 18
  • 79
  • 113
1
vote
0 answers

Validation Block not correctly validating properties in Enterprise Library 5.0

I have correctly configured validation block using Enterprise Library Configuration Console. My app.config file looks like the following (I only show here validation section):
Willy
  • 9,848
  • 22
  • 141
  • 284
1
vote
2 answers

Having trouble with Logging Application Block (EntLib 5) on Windows Server 2003R2

Typical scenario, I am using EntLib 5.0-April 2010 Logging on my development machine and everything works like a charm, when I try to put in production on our web server, it does not work. Development machine is Windows 7 using VS2008. Production…
sme
  • 75
  • 1
  • 1
  • 6
1
vote
1 answer

[EntLib 5]: Logging between assemblies

I've got a project that I'm working Enterprise Library logging into, and that application is made up of multiple assemblies. The UI assembly, the domain assembly and some others. Is there a way to have the logging all go to the same location (in the…
Steven Evers
  • 16,649
  • 19
  • 79
  • 126
1
vote
1 answer

Is it possible to use dataBase.executeNonQuery and use a return value from a stored proc?

I have done some research and found a few ideas on how we can use a return value from a stored proc like: using (SqlCommand cmd = conn.CreateCommand()) { cmd.CommandText = parameterStatement.getQuery(); cmd.CommandType =…
Saruchi
  • 346
  • 2
  • 13
1
vote
2 answers

Adventures on Enterprise Library 5.0: Who moved my cheese (namespace)

Jesus, Krishna, Budda! I've migrated to EntLib 5.0, but classes like ISymmetricCryptoProvider are not recognized anymore. Funny to say that Data, Logging and other blocks are working compiling fine. Here's the problematic class: using System; using…
Junior Mayhé
  • 16,144
  • 26
  • 115
  • 161
1
vote
0 answers

Data Access Application Block Configaration settings

I am using DAAB 5.0 in my WCF application, I need to add the following code in my Web.Config for DAAB to work
Vamsi
  • 156
  • 1
  • 8
1
vote
1 answer

Can you have a log file per user with Enterprise Library 5 in Asp.net Mvc 2?

There were 2 solutions suggested so far Environment variables using %username% in the filename section, and low level unmanaged code to accomplish it. Environment variables would be susceptible to pulling back only the user that is running the app…
Maslow
  • 18,464
  • 20
  • 106
  • 193
1
vote
1 answer

Change Enterprise Library configuration midway in a program

I want to log to a particular set of files/folders for some time, and then switch and start logging to a different set of files. For this, I'm using the fluent API to set my filename as I want (not shown here). But I'm not able to change the…
Narayana
  • 2,654
  • 3
  • 32
  • 32