enterprise-library

Adding more details to exception handling with Enterprise Library

I am using Enterprise Library 4.x for my exception handling logging (ASP.NET application). Here is the EntLib method I am calling: ExceptionPolicy.HandleException(ex, exceptionPolicy.ToString()); How can I add a bit more details to the exception, like current request url, current user name, etc.? I know I could wrap it in my except...

Does Enterprise Library 1.0 support sql server 2005

I used to connect to SQL Server2000. If it is possible to change to SQL Server2005? If yes, how to change the settings? thanks a lot. ...

Data Access Application Block and Transaction Scope will separate database objects use the same connection

I'm using System.Transactions and Transaction scope for my transaction handling in conjunction with the Enterprise Library Data Access Application Block. In some cases I'm using separate instances of the Database class within the transaction. The connection is to the same database though. I'm wondering if the application block will re...

Mono Compatibility with Enterprise Library 4.1

Does anybody using latest enterprise library 4.1 in mono? I used mono migration analyzer to analyze my web application and realized all enterprise library dll is failed in mono. I need to know is that true that enterprise library 4.1 is not compatible in mono 2.4? ...

Exception handling in a client - server architecture

I have a project consisting of a windows client (approx. 150 users), a webservice and some windows services. All together working in an intranet and build using C# .NET 3.5. Now I want to log exceptions in a central database and manage them (watch top 10, ticket system, etc.) via a web application. I thought about using and expanding EL...

Enterprise LIbrary and MS Azure Articles?

Hi Guys, Just wondering if anyone has had any experience using MS Azure and the Enterprise Library? I can't seem to find any articles on this and hoping (really hoping) someone has some ? Thanks, T. ...

WCF logging using Logging Application Block

I have a WCF service which is secured with username and password (using SqlMembershipProvider). I'd like to log EVERY (succeeded and failed) login attempt to this service and save user credentials to the database using Logging Application Block. When I turn on WCF logging and trace it with Logging Application Block, i get something like ...

Are you using the Microsoft Enterprise Library?

In my shop we currently develop what I would consider small to medium sized projects. We have been investigating the Enterprise Library and how it may be able to help us in development. I have particularly been looking at the Logging block and comparing it with Log4Net. It seems to me that the Enterprise Library blocks would be an ext...

Write debug info using Logging Application Block

I'm using the Logging Application Block (LAB) in my ASP.NET application along with the Exception Handling Application Block to log any unhandled exceptions. I'm utilizing the Application_Error method in Global.asax to catch these errors. I'm writing to a Rolling Flat File. This all works just fine. I'd also like to log debug messages us...

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 them with Sysinternals DbgView), but I can't find how to setup this second listener with fo...

Strategies for Cache Access During Refresh?

I’m looking for some strategies regarding accessing some cached data that resides in a internal company web service. Actually, preventing access of the cached data while the cache is being refreshed. We have a .Net 3.5 C# web service running on a web farm that maintains a cache of a half-dozen or so datasets. This data is configurati...

Exception Handling Application Block Exception Handler running in ASP.NET cannot call Response.End()

Using .NET 3.5, ASP.NET, Enterprise Library 4.1 Exception Handling and Logging blocks, I wrote a custom exception handler to display a standard error page, as follows: [ConfigurationElementType(typeof(CustomHandlerData))] public class PageExceptionHandler : IExceptionHandler { public PageExceptionHandler(NameValueCollection ignore)...

Effective Policy Viewer for Ent Lib 4

I can't find the effective policy viewer tool for enterprise library 4. All the links I find on the net point to source I have to compile against entlib 3 dll's. Does anyone know where I can find the updated tool? Or does the old one work and can someone provide the binaries? ...

Does my IBackingStore need to be thread safe ?

The documentation of the enterprise library says : Because of the way the Cache object operates, you are guaranteed that any backing store will be called in a single-threaded manner. This means you do not have to make your implementation thread safe. And concerning the CacheManager : Every method call made through the ...

Extending Enterprise Library Caching Block - how to get instance of MyCacheManager?

Hi, Since the default implementation of CacheManager doesn't provide GetItemsOfType<> (and many others) I thought of building my own: [ConfigurationElementType(typeof(CustomCacheManagerData))] public class MyCacheManager : ICacheManager { //The same constructor as in CacheAppBlock - CacheManager, but it's public here: public My...

Continue with Microsoft Enterprise Library?

I've been using the Microsoft Enterprise Library since before it was labeled as such for abstracted data access, in place of writing my own DAL. Originally I was just importing one file (sqlhelper.cs) into my projects, but then the later releases required that I reference the whole dll, unless I wanted to put a good deal of work in remov...

Should I use a façade over 3rd party assemblies?

We are compiling a list of common functions and methods into a utilities assembly. Part of this utilities assembly is to provide a façade over the Enterprise Library Logging Block. The utility assembly abstraction provides an extension over the Logging Block in a number of ways: A custom database logging component to capture richer log...

Policy Injection with ASP.NET MVC Controllers

I'm running into an issue with the Policy Injection Application Block from Enterprise Library in conjunction with ASP.NET MVC. In my ControllerFactory, I'm creating the controller and then calling PolicyInjection.Wrap on the controller. This gives me back a Transparent Proxy to the controller which manages the call handler chain. Final...

Using EntLib logging app block to send email using auth/secure smtp server

The entlib logging application block doesn't allow for setting username/password or useSSL in the EmailTraceListenerData config type, is there a common solution for this? ...

Installing Microsoft Enterprise Libraries and DatabaseFactory

I'm attempting to use the DatabaseFactory method from the Microsoft Enterprise Library. using Microsoft.Practices.EnterpriseLibrary.Data; The error I get is: The type or namespace 'Practices' does not exist in the namespace Microsoft I tried going to Microsoft's site to install the Enterprise Library, worked through the installation ...