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

How to write just message to debug output with Enterprise Library Logging?

I want to implement logging with EntLib Logging and hook up two TraceListeners for category "Debugging". One will write those messages to file and other will output them to system trace output the same way Debug.Write does (so that I could monitor…
bychkov
  • 1,503
  • 1
  • 13
  • 26
13
votes
2 answers

Does Fluent-NHibernate support mapping to procedures?

I've been wondering if it's possible to have Fluent-NHibernate communicate with stored procedures that already exist and assign mapping from the result set to my own domain objects. Also is Fluent-NHibernate able to directly execute procedures with…
13
votes
6 answers

Problem when trying to configure enterprise library 5.0 (Data Access Application Block)

I am running into some problems while trying to get DAAB from Enterprise library 5.0 running. I have followed the steps as per the tutorial, but am getting errors... 1) Download / install enterprise library 2) Add references to the blocks I need…
13
votes
4 answers

Specify allowed enum values in a property

Is it possible to specify that a enum property can only have a range of values? enum Type { None, One, Two, Three } class Object { [AllowedTypes(Type.One,Type.Three)] Type objType { get; set; } } Something like this? Maybe…
Hélder Gonçalves
  • 3,822
  • 13
  • 38
  • 63
12
votes
4 answers

Enterprise Library Logging not logging to Event Log from ASP.NET

I spent a day trying to make Ent Lib Logging work and log anything into database or event log. I have a web application and console application with the same Ent Lib config but only the console application is capable to log into the Event Log. I…
Costa
  • 3,897
  • 13
  • 48
  • 81
12
votes
2 answers

Format of the initialization string does not conform to to specification starting at index 0

I am using Microsoft Enterprise Lip I I have this method to Insert resource in the website I get this error down i don't think it is permission problem and really i don't know how to solve it.by the way I test the connectionStrings and it work…
user1800361
11
votes
3 answers

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

I have asp.net web site. I added reference of Microsoft.Practices.EnterpriseLibrary.Logging.dll to the site. in web.cofig file, I defined like below.
James123
  • 11,184
  • 66
  • 189
  • 343
11
votes
3 answers

How to call stored procedure in MVC by EF

Where can I get good tutorial on Entity framework with Stored Procedure in MVC framework? Is it better to use Enterprise library in this case when I have almost everything written in the stored procedure. Note: I am using stored procedure because…
Chris
  • 2,293
  • 11
  • 48
  • 86
11
votes
1 answer

When to use ExternallyControlledLifetimeManager?

I was going through different LifetimeManagers available in Unity and was wondering when will we use ExternallyControlledLifetimeManager? Can somebody give me an real life example? The MSDN doc says "A LifetimeManager that holds a weak reference to…
11
votes
7 answers

Activation error occured while trying to get instance of type Database, key "" <-- blank

I'm trying out the Enterprise Library 5.0 and was doing some unit-tests on my BL, do I need to have a app.config on the DL or on the Test project? note: I already have the configuration settings on my web.config on my web project. how I use the…
Martin Ongtangco
  • 22,657
  • 16
  • 58
  • 84
11
votes
2 answers

Is there a log4net version for Silverlight?

Is there a log4net version built against Silverlight somewhere? Failing that, can someone suggest an alternative logging framework to use in Silverlight?
Nosrama
  • 14,530
  • 13
  • 49
  • 58
10
votes
3 answers

MVC Mini Profiler with Microsoft Enterprise Library

I'm sure it's possible to profile the Enterprise Library SQL commands, but I haven't been able to figure out how to wrap the connection. This is what I have come up with: Database db = DatabaseFactory.CreateDatabase(); DbCommand dbCommand =…
goalie7960
  • 863
  • 7
  • 26
10
votes
2 answers
10
votes
5 answers

EnterpriseLibrary.Logging writes logs with 1 hour difference

we encounter a weird problem with logging. We are using Microsoft.Practices.EnterpriseLibrary.Logging library for logging in our web application and the problem is that it writes the log with 1 hour difference from the current system time. Our…
Burjua
  • 12,506
  • 27
  • 80
  • 111
10
votes
6 answers

Logging to files or to event viewer?

I was wondering what is the 'correct' way to log information messages; to files, or to a special log in the event viewer? I like logging to files since I can use rolling flat file listener and see fresh new log from each day, plus in the event…
Rita
  • 1,448
  • 1
  • 14
  • 22