enterprise-library

Where to find Entlib xsd file?

Hi! Does this file exists? I'm tired of the 'Could not find schema information for attribute' messages. Thanks ...

Logging from multiple processes to same file using Enterprise Library 4.1

I have several processes running concurrently that I want to log to the same file. We have been using Enterprise Library 4.1 Logging Application Block (with a RollingFlatFileTraceListener), and it works fine, apart from the fact that it prepends a GUID to the log file name when two processes try to write to the log file at the same time...

Adding a 'User' to the eventlog using Enterprise Library Logging Block

I'm using the Enterprise Library Logging application block to allow my application to log various events. This is working fine and the logs can be seen by Event Viewer (eventvwr.exe) going into the Application log. However, Event Viewer always shows the user field as "N/A". Other applications have the field populated - how do I popula...

Setting a 'category' in the .net enterprise library logging (to event log)

I am writing some logs to the event log using the Microsoft enterprise library Its writes logs away fine but doesnt seem to set the category in the event log. The category appears okay in the message body of the log (if I choose to set that) but the event viewer doesnt pick up the category. What am i missing? c# source LogEntry log...

Using Enterprise Library Exception Handling Application Block in ASP.NET - Code Review

I'm implementing the Enterprise Library Exception Handling Application Block in an ASP.NET application that I am building. I'm planning to handle uncaught application exceptions by placing the following code in my Global.asax.cs: protected void Application_Error() { Exception error = Server.GetLastError(); Exception ...

Programmatic configuration of Enterprise Library logging block

I've previously used log4net, but my current employer uses Enterprise Library application blocks. I had previously developed unit tests for my core logging classes as follows and was wondering is someone knew the equivalent for the OneTimeSetup code below for the logging app block (sorry for the long code post): public abstract class D...

validation application block object validator not working with rulesets

Howdy, Ive been battling with this issue which I originally thought may have been to do with polymorphism/inheritance affecting my validation but ive narrowed it to this... Here is the class structure.. public class Employee { [ObjectValidator(Ruleset = "A")] public EmployeeName Name { get; set; } public Employee() {...

EntLib logging - add/edit TraceListeners at runtime

I have a web application where I would like to add or edit Enterprise Library logging at runtime. I'm familiar with how to configure EntLib Logging completely programmatically and through the config file, but I would like to use a combination of the two. I'd like to have some base TraceListeners setup via the config file, but then at a...

Enterprise Library Policy Injection Logging Managed Security Context Information in ASP.NET

I am using The Policy Injection Application Block to log methods that are called in my ASP.NET application. I would like these log entries to include information like the current user identity, whether the user is authenticated and so forth. All of this information is provided by the ManagedSecurityContextInformationProvider, but I can'...

New .NET 3.5 Project: Which DAL technology to use?

Hello, I am preparing a new Windows project and wonder what kind of DAL technology to use. Originally I was looking for something simpler to not spending too much time on building it. But I understand also that it has to be efficient and scalable in the long run. I plan to use WPF (MVVM) Client and WCF Service on a 3 Tier system. Just...

PostSharp4EntLib with EntLibv4.1??

I have a project which uses Enterprise Library v4.1, can i use PostSharp4EntLib with Enterprise Library 4.1? The current release of PostSharp4EntLib is supposed to work with EntLib v3.1? ...

Enterpise Library 4.1

I'm using enterprise library 4.1 and i wish to create different log files for different event types. eg. Error.log for Error events, Warning.log for Warning events, how can accomplish this ? thx ...

Validation Application Block Questions

Hi, Has anyone used the validation application block from enterprise library? Any success? Anyways, my question is with regards to validating a numeric unique identifier. Lets say I have a Product class, with a ProductId property representing the unique identifier of the product. It is numeric. This identifier cannot be less than 1...

Regarding Catching FaultException<T> ex

Hi I am using Enterprise application block on my application' server side to handle exceptions. I am able to successfully handle exception. I have created a custom service fault class to handle exceptions. Here are my web config enteries... <exceptionPolicies> <add name="WCF Exception Shielding"> <exceptionTypes> <add ...

Reading EntLib 4.1 configuration from an in-memory XML string

Hi all again, I'd like to use the EntLib 4.1 in my current project, specifically Unity 1.2 and the VAB. My application is an SaaS application, so as a result, I've made a decision to store tenant-specific configuration files in the database, to be loaded on tenant sign-in. These files include the VAB config and Unity config, as well as ...

Lightweight use of Enterprise Library TraceListeners

Is it possible to use the Enterprise Library 4.1 TraceListeners without using the entire Enterprise Library Logging AB? I'd prefer to simply use .NET Diagnostics Tracing, but would like to setup a listener that sends emails on Error events. I figured I could use the Enterprise Library EmailTraceListener. However, my initial attempts to c...

Different applications using the same IsolatedBackingStore

I am using the entlib's Caching Application Block with isolated storage. I want different instances of the same application to use the same backing store. Currently, the second instance of my app reads from the backing store when it starts up, so items that have already been cached are read. However, when either instance cahces a new it...

.net c sharp Console Application : timeout

I am creating a console application using Enterprise Library my code is something like this DataSet ds = db.ExecuteDataSet(command); this actually calling a SP which take 10-15 minutes to complete , so my come throws a time-out error. Any idea how to overcome this. ...

Can the MS Enterprise Library build object model and code from a database?

I have just encountered the MS Enterprise Application Library 3.1 in an application I need to support/enhance. I am trying to get up to speed quickly on Microsoft.Practices.EnterpriseLibrary.Data in particular. The doc on this is quite good but the reading is vast and I am curious about one aspect of this: Years ago when .Net 1.0 firs...

MS Enterprise Library Data Block to pass XML into the a stored procedure with a XML parameter.

In my apps I typically use the Enterprise Library Data Block to simplify my database interactions. C# code such as: public static IDataReader AdminNavigation_Insert(int iGroupId, string sText, string sRelativeUrl, int iSortOrder) { return DatabaseFactory.CreateDatabase("database").ExecuteReader( "cms_uspAdminNavigation_Inser...