enterprise-library

A Cause for HRESULT 0X80131468 when accessing IsolatedStorageBackingStore

The scenario I am facing is that I have an ASP.NET web service (.NET 3.5) running on an W2k3 server which is using the CacheManager/IsolatedStorage store to store a persisted state variable. This configuration has been working fine for quite sometime until we changed the physical machine. Now whenver the code that accesses that value r...

Having trouble with Logging Application Block (EntLib 5) on Windows Server 2003R2

Typical scenario, I am using EntLib 5.0-April 2010 Logging on my development machine and everything works like a charm, when I try to put in production on our web server, it does not work. Development machine is Windows 7 using VS2008. Production server is Windows Server 2003 R2 with Microsoft .NET Framework 3.5 with Service Pack 1. ...

Enterprise Library 5 logging class name.

Hi, I'm trying to use the logging block of Enterprise library for our application and I'm wondering if there's a way for the logger to automatically log the Class name that it is called from? I could manually insert the class name in the message when calling logger.write but I want to know if there's another way of doing this. Thanks ...

Ent.LIbrary Data Helper for reduce code lines

any helper class for reduce code lines using ent Library ?? for example, I have this code, can I use reduce lines using any helper class ?? Any sample please Database db = DatabaseFactory.CreateDatabase("ConnectionStrings.Oracle.D04PES01"); using (DbCommand cm = db.GetStoredProcCommand("TBL_POC_TEST_TIPOS.TBL_POC_TEST_...

WPF Enterprise Library 5 Validation

I've just started to follow the EntLib hands on labs for the validation integration with WPF. http://www.microsoft.com/downloads/details.aspx?FamilyID=4f8cd377-5522-4f45-a024-44a6ca5111ec&displaylang=en What I have found is that my textbox's databinding is firing fine when my validators pass. I have a string property with the follo...

Enterprise Library Caching Block - DataBackingStore cannot be resolved

Hello, I have just started to look at the caching block which sounds very promising but am having trouble getting it to work with a DataBackingStore. It works fine with a NullBackingStore but when I switch to data, I get the following error when trying to create the CacheManager from the CacheFactory: The type 'Microsoft.Practices...

Use Enterprise library for OLEDB Access database

Hi All, I want to use Microsoft Enterprise library Data Application Block for MS Access database (OLEDB provider) I want parameter based INSERT functionality with enterprise library (Just like we do for SQL provider with parameter based code like - database.params.Add("@EmpName", this.EmpName); I want the same thing for MS Access data...

Linq vs MS Enterprise Library DAAB

At work, we just upgraded from VS2005 to 2010. To this point, we've only used sprocs (I guess out of habit more than anything). I've been playing around with Linq (very simple tutorials - nothing major). As my first actual experience with an ORM, I like it. In addition, I've only recently become familiar with the Enterprise Library bloc...

Is it possible to create a Microsoft Practices Enterprise Library Data Access Block Database from a DbConnection

Hey Everyone, I have a DbConnection object (coming from an EntityFramework 4.0 context) and was wondering if it is possible to create a Microsoft Practices Enterprise Library Data Access Block Database (Microsoft.Practices.EnterpriseLibrary.Data.Database). Does anyone know if it is possible to do this? ...

Email only Errors/Warnings with Microsoft Logging Application Block 3.1.0.0

Hello, What am I doing wrong? I'm trying to configure the logging settings to log all events in a database and event viewer but email only errors and warnings. Database and Event Viewer part works fine except that I'm not getting any email for errors. Am I missing something? Note: There isn't any problem with smtp settings beca...

How do I make SqlBulkCopy work with MS Enterprise Library?

I've got some code which uses SqlBulkCopy. And now we're refactoring our code to use Enterprise Library database functions instead of standard ones. The question is how can I instantiate SqlBulkCopy? It accepts SqlConnection, and I only have DbConnection. var bulkCopy = new SqlBulkCopy(connection) // here connection is SqlConnection { ...

Uninstalling Enterprise Libraries EntLib 5.0 Beta

How is it possible to uninstall any of the Enterprise libraries? There is no entry in the control panel to uninstall, there is no "Uninstall" on the menu. I'm trying to install EntLib 5.0 and it fails because it doesn't like the EntLib 5 beta 2 on there. I don't have the original msi and it is no longer available for download. Any su...

Please help! unable to add performance counters - 'Add' button is disabled

Hi I have created performance counters using Entlib 4.1 as below. When I open up the performon.exe and Add Counters - I can see the Performance Object I created, and the list of counters. However I can't add them becuse the Add button is disabled. Any suggessions? public class Program { static void Main(string[] args) { ...

pattern for logging using enterprise library

hi folks, on our current project we decide to use enterprise library for logging, upto now we used only log4net, but I can not find any advice how to really use the library in flexible way, what I mean is in log4net this would be the way: //define this in MyClass private static readonly ILog log = LogManager.GetLogger(typeof(MyClass)...

DBTransaction and Enterprise Library

My requirement is to create temp table then exec a store procedure which will insert rows into the temp table then drop the temp table. However if there is an error when doing this, I want to always drop the temp table at the end. I know with enterprise libary managing connections, the table is dropped once the connection is closed anywa...

wcf and Validation Application Block unit testing

I'm trying to test validation that I've setup for my wcf service. What's the best way to do it? [ServiceContract] [ValidationBehavior] public interface IXmlSchemaService { [OperationContract(Action = "SubmitSchema")] [return: MessageParameter(Name = "SubmitSchemaReturn")] [FaultContract(typeof(ValidationFault))] JobData...

Enterprise library Validation block

I have a web application project. I want to add Configuration Source and keep Validation block, Caching and Logging config files separate. But as soon as I go to the UI of enterprise Lib and add a configuration Source, it combines everything in a single file. Is there a way to separate all these ?. ...

Enterprise Library Validation Application Block and Internationalization

Scenario A .NET/WPF desktop application should be localized (or in MS terms globalized) to a different language than English. That is, the UI needs to be adopted completely (labels, icons, ...). Log file entries, audit trail entries, and other outputs of the application, however, should remain in English to allow the English-speaking ...

What references required enterprise application library?

I'd like to use the Caching Handler: http://msdn.microsoft.com/en-us/library/ff648868.aspx I may want to use some of the other features of the enterprise library, as well. Can someone point me to a reference to know the references I need to add or provide a heuristic for which modules to include? ...

Enterprise library with linq-to-sql?

I wanted to get any feedback (put out a feeler) for how the enterprise library plays with linq-to-sql generated classes. I was considering using the validation handler to provide validation logic/display to the UI level. I am considering the caching handler, validation, and authorization handlers primarily. ...