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
21
votes
6 answers

VSIXInstaller.NoApplicableSKUsException: This extension is not installable on any currently installed products

I tried to install enterprise library 6.0 recently in visual studio 2015 but the installer throws an error: VSIXInstaller.NoApplicableSKUsException: This extension is not installable on any currently installed products. I couldn't resolve it.…
21
votes
3 answers

Table valued parameter in a stored procedure gets execute permissions denied error

I get the following error when calling a stored procedure that has a table valued parameter as one of the parameters The EXECUTE permission was denied on the object 'ValidationErrors' ValidationErrors is a TVP created with the following statement:…
arunpereira
  • 582
  • 5
  • 13
21
votes
4 answers

Setting parameter to DBNull.Value using ternary syntax gives error?

I have the following bit of code to set a parameter that will be used in an INSERT statement to set a VARCHAR column in a SQL Server database. My value object (named ilo) has a property called Description that gets initialized to String.Empty, and…
Jim
  • 6,753
  • 12
  • 44
  • 72
19
votes
6 answers

Could not load file or assembly 'Microsoft.Practices.EnterpriseLibrary.Common' or one of its dependencies

I have searched google for this and could not find the solution to the problem. My Website references DAL (custom dll) which references Enterprise Library Data Access Components. I have added the Enterprise Library from the NuGet Package Manager and…
Naveed Butt
  • 2,861
  • 6
  • 32
  • 55
19
votes
6 answers

Microsoft Exception Handling Block - Isn't it a perfect example for overengineering?

Ever since Microsoft has introduced the application blocks, I've been bumping into people who use the Exception Handling Application Block. I've recently had a closer look myself and would summarize the basic functionality as follows (skip the…
user49572
18
votes
4 answers

System.Diagnostics.Debug namespace vs Other logging solutions (log4net, MS Enterprise Library, etc.)

I'm currently investigating various logging possibilities for .net projects and I can't decide between System.Diagnostics.Debug/Trace features and third party libraries like log4net, MS Enterprise Library, NLog, etc. At the moment I have found out…
timurso
  • 273
  • 2
  • 6
18
votes
5 answers

Transient Fault Handling with SQL Azure using Entity Framework

I currently use SQL Azure and Entity SQL in my application. e.g. Entities model = new Entities(); db_Item item = model.db_Item.First(); Now I want to use the Transient Fault Handling out of the Enterprise Library but there are no examples or…
Adam
  • 16,089
  • 6
  • 66
  • 109
16
votes
2 answers

Enterprise Library 5.0 - Application Logging - Incorrect DateTime

I am using Microsoft Enterprise library 5.0 for application logging of my .net application. Logging is working properly. But the problem is the DateTime that is being logged along with the logging message is incorrect. There is a time difference of…
Sidharth
  • 1,251
  • 1
  • 25
  • 40
16
votes
1 answer

Microsoft.Practices.EnterpriseLibrary.Data.DLL but was not handled in user code

Searched google and using Enterprise library data access to connect database. Installed only data access pack using https://www.nuget.org/packages/EnterpriseLibrary.Data/. After added to the project, I've set the configuration as follows, …
Jeeva J
  • 3,173
  • 10
  • 38
  • 85
15
votes
5 answers

How to Decouple IoC Framework Implementation

I've been learning IoC, Dependency Injection etc. and enjoying the process. The benefits of decoupling and programming to interfaces are, to me, a no-brainer. However, I really don't like binding myself to a specific framework like Unity or Autofac…
15
votes
6 answers

Does Enterprise Library 6 work with Visual Studio 2013 and/or 2015?

It seems it does not and we are planning to use it (Logging, Exception, etc..) for future projects. Is it still supported? I do not see a lot of activity around this tool as there used to be. We already have NewRelic so also be helpful to know if…
punkouter
  • 5,170
  • 15
  • 71
  • 116
14
votes
7 answers

Unity application block 2.0 - The given assembly name or codebase was invalid

Interfaces (In the assembly named "Interfaces". In project :- Interfaces) namespace Interfaces { public interface IDoSomeWork1 { string DoSomeWork1(); } } namespace Interfaces { public interface IDoSomeWork2 { …
Ashish Gupta
  • 14,869
  • 20
  • 75
  • 134
14
votes
4 answers

How to Log Exception in a file?

I want to be able to do logging in every catch block. Something like this. catch (Exception exception) { Logger.Write(exception); } and then the settings in the configuration will pick up the Message and StackTrace property etc using customer…
IsmailS
  • 10,797
  • 21
  • 82
  • 134
14
votes
3 answers

How To Use Exception Manager Enterprise Library 6.0

When using Enterprise Library 6.0, this error occurs in the code below: bool rethrow = ExceptionPolicy.HandleException(ex, "ReplacePolicy1") "Must set an ExceptionManager in the ExceptionPolicy class using the SetExceptionManager method." In…
Morteza Mousavi
  • 213
  • 1
  • 4
  • 11
14
votes
3 answers

Azman Obsolete? What is the new alternative to Azman?

Is there a replacement for Azman, that is a new way to apply security. Previously we were using EntLib 3 and used Azman for our security and authorisation. However an article I read about the vision of EntLib 6.0 is to deprecate Security(link…
Donald N. Mafa
  • 5,131
  • 10
  • 39
  • 56