Questions tagged [enterprise-library]

Microsoft Enterprise Library is a collection of application blocks and core infrastructure designed to assist developers with common enterprise development challenges such as logging, validation, data access, etc.

Microsoft Enterprise Library consists of a collection of application blocks and core infrastructure. All of these are reusable software components designed to assist developers with common enterprise development challenges. It also comes with a lot of guidance, including the Developer's Guide, MSDN documentation, Hands-on Labs, Videos and Demos.

Enterprise Library 6 contains the following:

  • Data Access Application Block
  • Exception Handling Application Block
  • Logging Application Block
  • Validation Application Block
  • Policy Injection Application Block
  • Unity Dependency Injection Container
  • Semantic Logging Application Block (SLAB)
  • Transient Fault Handling Application Block ("Topaz")

Sites

Books

enter image description here

1586 questions
10
votes
8 answers

Is it a good practice to create wrapper over 3rd party components like MS enterprise Library or Log4net?

This is more like a good practise question. I want to offer different generic libraries like Logging, caching etc. There are lots of third party libraries like MS enterprise library, log4Net, NCache etc for these. I wanted to know if its a good…
rauts
  • 1,018
  • 9
  • 21
10
votes
4 answers

The type or namespace name 'Practices' does not exist in the namespace 'Microsoft'

I am using Microsoft Visual Studio 2005 for c# I have the following namespace on my code using Microsoft.Practices.EnterpriseLibrary; using Microsoft.Practices.EnterpriseLibrary.AppSettings; using Microsoft.Practices.EnterpriseLibrary.Data; and I…
QKWS
  • 1,069
  • 9
  • 22
  • 41
10
votes
1 answer

What to use for Size argument in Database.AddOutParameter when returning a string?

I'm getting a string as an output parameter, and need to know what to set for the Size argument in the call to AddOutParameter. I know I could just use some huge number, like int.MaxValue, but want to know best practices. In SQL Server, the column…
Jim
  • 6,753
  • 12
  • 44
  • 72
10
votes
1 answer

BackgroundWorker exception handling

I'm working with the following components: a Library (which throws an exception) a test-console to test my logging the enterprise library exception handling application blocks the enterprise library logging application blocks I'm invoking the…
9
votes
3 answers

Error: "is not an attribute class" when using ConfigurationElementType attribute

I'm trying to create a custom exception handler for the exception handling block of enterprise library 5.0. As far as I understand I need to start the class off with the attribute "[ConfigurationElementType(typeof(CustomHandlerData))]". But I get…
Gavin Grant
  • 123
  • 1
  • 1
  • 8
9
votes
1 answer

Activation error occured while trying to get instance of type ICacheManager, key "Cache Manager"

I seem to have hit a wall here and would appreciate some help from anyone who is able to on this one. I am not exactly sure what the error message below means. I am using the Caching Block of Enterprise Pattern Services but I keep running in to the…
Kobojunkie
  • 6,375
  • 31
  • 109
  • 164
9
votes
6 answers

Copy parameters from DbCommand to another DbCommand

How do you copy DbCommand parameters to another DbCommand, I want a new DbCommand with the same parameters as my last DbCommand. But now with a different sql string.
Aivan Monceller
  • 4,636
  • 10
  • 42
  • 69
8
votes
1 answer

Enterprise Library validation blocks

I've just started using the ms validation blocks which i think are awesome. but have a couple of questions regarding data validation between layers. Currently I'm using the repository pattern as a bridge to my data access layer. In my logic layer…
Richard Banks
  • 2,946
  • 5
  • 34
  • 71
8
votes
2 answers

How do I pass a table-valued parameter to SQL Server 2008 via EntLib 5.0?

How do I pass a table-valued parameter to SQL Server 2008 via EntLib 5.0?
birdus
  • 7,062
  • 17
  • 59
  • 89
8
votes
4 answers

Changing connection string at runtime in Enterprise Library

Is there a way to change the connection string of a DataBase object in Enterprise Library at runtime? I've found this link but its a little bit outdated (2005) I've also found this but it seems to apply to .Net in general, I was wondering if there…
Gustavo Rubio
  • 10,209
  • 8
  • 39
  • 57
8
votes
2 answers

How to get number of rows affected by ExecuteNonQuery and ignore rows of triggers?

I am using ExecuteNonQuery to run an insert proc, it returns 2, but in actual I am inserting only 1 record. I am getting 1 extra due to trigger. Is there anyway that I get only actual number of rows affected. I do not want the rows affected by…
Girish Gupta
  • 1,241
  • 13
  • 27
8
votes
2 answers

Is the Microsoft Enterprise Library 5.0 Logging Application Block thread safe?

I have some code that will be logging using the Logging Application Block in Enterprise Library 5.0 from different threads. Is the LAB thread safe? Can I log like normal from different threads or will I need to synchronize the logging code so that…
John Mills
  • 10,020
  • 12
  • 74
  • 121
8
votes
4 answers

await/async Microsoft Practices Enterprise Library Data

I have an older application that I wrote where I used Microsoft.Practices.EnterpriseLibrary.Data to get data from the DB. I have recently upgraded to .NET 4.5 and wanted to advantage of await/async. I do not see any methods ending in "Async" as…
ScubaSteve
  • 7,724
  • 8
  • 52
  • 65
8
votes
4 answers

Logging from multiple processes to same file using Enterprise Library 4.1

I have several processes running concurrently that I want to log to the same file. We have been using Enterprise Library 4.1 Logging Application Block (with a RollingFlatFileTraceListener), and it works fine, apart from the fact that it prepends a…
rikoe
  • 1,639
  • 1
  • 21
  • 29
8
votes
2 answers

Cannot resolve symbol 'EnterpriseLibraryContainer'

I just started to try out the new MS Enterprise Library 6.0 Logger block. When I try to create a LogWriter, I get the error: Cannot resolve symbol 'EnterpriseLibraryContainer' I have all the references and usings in place, but can't get past…
Doug J. Huras
  • 637
  • 1
  • 10
  • 19