The CachingCallHandler included in Enterprise Library 4.1 was removed for Enterprise Library 5.0+. The documentation refers to using the Enterprise Contrib Library to get this functionality, if needed.
My questions:
Where is this functionality in the Enterprise Contrib Library?
Does this work with Enterprise Library 5.0?
This is the...
So, I was talking with a guy the other day about Enterprise Library Logging Application Block and log4net.
Something I noticed was that log4net claims:
log4net is not reliable. It is a best-effort and fail-stop logging system.
Surprisingly, I was trying to find out if the Enterprise Library logging is "reliable". This is all I can...
Sorry, this is quite a special topic so this may not be of interest to many. :-(
However, I need to do the following thing:
I have an application that provides logging to some kind of console window (it's a WPF window, because of application requirements and because the application needs to look flashy even here - our special customer...
I need to perform logging to console (or debug/trace). Currently I'm using Ent Lib 4.1 Logging Application Block. To log to console I use SystemDiagnosticsTraceListenerData and System.Diagnostics.ConsoleTraceListener.
It performs logging to console fine, but I'm not able to use formatter for this lister type and thus can't format log e...
CachingCallHandler of the enterprise library caches items using NoAbsoluteExpiration. But, I don't see a way to invalidate the cache. That one would want an item cached forever with no way to invalidate it, doesn't make any sense.
Before I implement my own invalidation method, I wanted to validate that there doesn't exist a trivial inva...
My application uses Enterprise library 4.1 exception handler and logging application block. The Stacktrace when logged to the database, the Message column has been truncated to 1500 characters. Where do I modify this column length, so that I can get complete string? I tried modifying the [log] table and WriteLog argument for Message . An...
Hi all,
What will happen if I disable tracing in Logging Application Block
E.g.
<loggingConfiguration name="Logging Application Block" tracingEnabled="false" defaultCategory="" logWarningsWhenNoCategoriesMatch="true">
<listeners>
.....
I have only one Trace and Trace Listener.
...
Hi All,
Can the Logger statements in Logging Application Block affect the performance of the application?
...
HI All,
How costly can be Logger.Write(logEnrty) with respect to the CPU cycles when we are considering the application performance.
...
We are thinking about using the enterprise library caching framework in our asp.net 3.5 application to store small datatables of our most hit products.
Is there a way to write an outside process, like a console application, to remove these datatables, if needed? For example, a client can come in and update the data for a product, which...
I've got a method that does some IO that generally looks like this:
public bool Foo()
{
try
{
// bar
return true;
}
catch (FileNotFoundException)
{
// recover and complete
}
catch (OtherRecoverableException)
{
// recover and complete
}
catch (NonRecoverableExceptio...
I'm using Enterprise Library 3.1 and want to programmatically access the Logging Block (runtime, object model) specifically its Trace Listeners and Sources.
For example, I want to access the Filename property of a trace listener object so I can know where the log file is located on disk.
Update: Looking for answers that use the runti...
Hi
I have read and searched this issue with the Enterprise Library Validation mechanism. This very simple forms application demonstrates the issue. The Metadata class is ignored by the validator. I am trying to use it in a MVC application with an Entity Framework.
This is in .NEt 3.5 using VS 2008 on XP SP3.
namespace ValidationTest
{
...
Using PIAB / Unity, is it possible to intercept "child" method calls ?
e.g. the class has three methods ...
DoSomething(), DoFirst(), DoSecond()
The DoSomething() method calls DoFirst() which in turn calls DoSecond()
I can get interception of DoSomething, but I can't get anything for DoFirst and DoSecond. I've tried various of the...
Is it possible to mock the enterprise library 5 version of 'Database'? If so... how?
There is no IDatabase interface (which is a mystery as I though Microsoft P&P would be more on the ball about testability benefits of exposing such an interface).
I have a Repository class which used EntLib 5 Data Access Application Block.
I am retro ...
Hello All,
We are using enterprise library 4.1 and smart client software factory 2008 to our application.
how we can upgrade enterprise library 5.0 and SCSF 2010 to our application.presently we are using visual studio 2008.
To upgrade what are the thing needs to be taken care.
Early help would be appreciated.
...
Hi,
I installed Enterprise Library 5.0 and, now in context menu, when I click at app.config in project in Visual Studio, I don't have the option:
Edit enterprise library configuration
My coworker has, so it's weird, because we have installed the same version.
But we have option
Edit enterprise library V5 configuration
But...
I'm in the process of updating an app to VS 2010 using EntLib 5. In the app as it stands, there are numerous instances where a dropdown list is bound to a SqlDataReader. However, before it is bound, I use the HasRows property to see if the DataReader is empty. Since the ExecuteReader method in EntLib 5.0 returns an IDataReader, to do the...
I Just started to evaluate The MS Enterprise Library. They use the following instruct to get instances:
var customerDb =
EnterpriseLibraryContainer.Current.GetInstance<Database>("Customers");
I know GetInstance is the method, but What kind of construct (or struct) <Database> is?
is it some kind of generic?
...
Hi All..
I have an issue with the implementation of VAB. We are using ASP.NET MVC 1.0
I have a property "First Name" and we want to have 2 validations.
Not Null Validator
RegEx Validator (to stop some characters)
Now if I leave it blank then it gives me the error message from both the validator.
If the First name is blank I only w...