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

Enterprise library security caching using AppFabric caching

Is it possible for Enterprise library security block to use AppFabric caching as opposed to EnterpriseLibraryCaching? Can I just simply swap out the default caching block and use AppFabric caching instead to get my identity and principal? Please…
dotnet-practitioner
  • 13,968
  • 36
  • 127
  • 200
0
votes
1 answer

How to set "timeout" when using the method "CreateSqlStringAccessor"?

I have a code like this, how I can do to set the "CommnadTimeout"? var database = EnterpriseLibraryContainer.Current.GetInstance(); var sqlGetAllPersons = @"select * from Person.Person"; var personMapper =…
andres descalzo
  • 14,887
  • 13
  • 64
  • 115
0
votes
3 answers

Connection of MVC 3 application with the ever changing database

I have just started learning ASP.NET MVC 3 and I am deep trouble deciding the best way to connect to the database for my application. As my application database will be enhance in regular intervals so new tables, columns could be added/removed and…
0
votes
3 answers

Enterprise Library for Logging to Flat File Trace Listener

What kind of permission needs to be given to the Error.log file in the server (running IIS 7.5) so that errors are written to the Error.log file? I have created a directory named ErrorLog and set up the listener in web.config like below.
daniele
  • 167
  • 3
  • 10
0
votes
2 answers

Count(*) using Enterprise Library

Does anyone have any idea how to use count(*) in a dynamic query with the Enterprise Library Data Access Application Block? I am using: Public Shared Function selectCount(ByVal code As String) As Integer Dim query As String = "SELECT COUNT(*) "…
Andrew
  • 11,068
  • 17
  • 52
  • 62
0
votes
1 answer

Validation Application Block - Validation attributes multiple error order

I'm playing with EL Validation Application Block. When a validation is made using attributes, the validation order is not respected. For example: public class Boat { [Display(Name="License Plate")] [RequiredStringValidator] …
JPP
  • 360
  • 6
  • 22
0
votes
3 answers

Abstract Factory and Unity Dependency Injection

Im very unsure how i should approach this as im new to the Unity Container. Heres a factory i have: class DataCopierFactory : IDataCopierFactory { private readonly IUnityContainer _container; //not mad on binding the factory to the…
0
votes
1 answer

WCF Enterprise Library ExceptionHandling failing when faultcontracttype in other project

Background: I have a WCF project that is using Microsoft Enterprise Library WCF Exception Handling. We recently decided to move our operation and data contracts into a separate project (.net assembly) called comanynamespace.xxx.WCF.Utilities. …
jreed350z
  • 485
  • 1
  • 5
  • 15
0
votes
1 answer

Enterprise Library ExceptionManager: "Log entry string is too long."

We use Microsoft's Enterprise Library (4.1) and frequently have the following problem: [ArgumentException: Log entry string is too long. A string written to the event log cannot exceed 32766 characters.] …
Josef Pfleger
  • 74,165
  • 16
  • 97
  • 99
0
votes
2 answers

App.Config Resolution Failure

I have a C# WPF application that is experiencing a weird issue. The app uses the MS Enterprise Library (Logging) which is configured using the app.config. My deployed files hence are: (names changed, filename lengths…
Christopher Painter
  • 54,556
  • 6
  • 63
  • 100
0
votes
1 answer

Adding Logging Target Listeners to Enterprise Library Configuration Tool

I am using the logging application block from Enterprise Library 5.0 in my application. My architect wanted custom behaviour therefore I wrote my own Trace Listener which logs to a database, executing other custom code on the way. This all…
Shumii
  • 4,529
  • 5
  • 32
  • 41
0
votes
1 answer

Enterprise Library 5 Validation Type Safe?

I recently discovered the Enterprise Validation Library and am using it to validate my app.config file. I mostly have strings which were simple to apply validation to. I also have some booleans for example: class Options { public bool…
nitewulf50
  • 530
  • 1
  • 4
  • 17
0
votes
1 answer

SqlClient login fail when trying to connect to database

This is so weird. Ok here's my connection string in the web.config of my MVC 4 project: Here is the connection string in my Unit Test Project's App.Config file:
PositiveGuy
  • 46,620
  • 110
  • 305
  • 471
0
votes
1 answer

Using ScriptManager in ASP.NET 3.5 ASPX page with EnterpriseLibary 5.0

I am working in an MVC3 application that references assemblies that use version 5 of the Microsoft Enterprise Library. I am doing a research project about using the ReportViewer to create reports. I learned the ReportViewer can't be used in a Razor…
0
votes
2 answers

Storing binary file to Oracle Blob field in C#

We have our own DataAccess library built upon the Microsoft Enterprise Data Access block. I have stored procedure that takes binary file content as input parameter and store it into DB. byte[] imageFileByteArray =…
vijay
  • 635
  • 2
  • 13
  • 26
1 2 3
99
100