application-blocks

Using Microsoft's Application Blocks

I haven't done a lot of .NET programming, but I have examined a few of the application blocks published by Microsoft's Patterns and Practices group. I was wondering how these are typically used: Linked directly into applications Source added into applications and built with them, perhaps with some customizations Sample code used as re...

Where can I get a simple explanation of policy injection?

I'd like a dead simple explanation of policy injection for less-informed co-workers. Where is a good resource for this? I learned about policy injection from the entlib help files, which I'm sure aren't the best option. ...

Logging Application Block - Logging the caller

When logging with Log4Net it's very easy to put class that called the log into the log file. I've found in the past that this makes it very easy to trace through the code and see the flow through the classes. In Log4Net I use the %logger property in the conversion pattern like so: <conversionPattern value="%date [%thread] %-5level %l...

Microsoft.ApplicationBlocks.Data.ODBCHelper ?

I've found mention of a data application block existing for ODBC, but can't seem to find it anywhere. If i didn't have a copy of the Access DB application block I wouldn't believe it ever existed either. Anyone know where to download either the DLL or the code-base from? --UPDATE: It is NOT included in either the v1, v2, or Enterpris...

How to resolve "Could not find schema information for the element/attribute <xxx>"?

In visual studio, I have an asp.net 3.5 project that is using MS Enterprise Library 4.0 application blocks. When I have my web config file open, my Error list fills up with 99 messages with things like Could not find schema information for the element 'dataConfiguration'. Could not find schema information for the attribute 'default...

How to use UIP-User Interface Process 2.0 with ASP.Net

Hi it would be very kind if some one could suggest an article or two on Implementing UIP-User Interface Process 2.0 with ASP.Net. I have gone through some of the examples but they are of no help to me. Hope you guys can help me out. ...

Connect to MySQL from Microsoft Data Application Block

lI am using the Data Application block for a majority of my data access, specifically using the SqlHelper class to call the ExecuteReader, ExecuteNonQuery, and like methods. Passing the connection string with each database call. How can I modify this to enable connection to a MySQL database as well. ...

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 following block if you already know what it does): The exception handling application block...

log4net vs MS Logging Application Block

I am trying to understand pros and cons of using log4netor enterprise library logging application block (LAB) for logging in application. I know one thing LAB is little difficult to use then log4net. ...

Enterprise Security Application Block in Conjunction With MembershipProvider in ASP.NET

Looking to implement authentication/authorisation for ASP.NET app Was looking into using Provider model MembershipProvider SQLServerMembershipProvider etc as makes good sense to me. However I'm looking into the Enterprise Security Application block as well. My question is can/should the two be used in tandem? ...

Security Application Block in ASP.NET Application

I'm considering using the Microsoft Security Application Block in my ASP.NET application but am struggling to find any real world examples. Could anyone point me towards some real life examples, proofs of concepts and so on. ...

Alternative to Microsoft Security application block?

We need to implement role-based security across our solution which has asp.net, winforms and web service entry points. We will also need some front end to configure it. I really don't feel like rolling my own,s I have done it a few times before and it is tedious. I have historically not been a fan of the MS ABs because I found them to b...

Policy Injection Application Block in real world apps?

The PIAB of the Microsoft Enterprise Library looks like it could be used for some pretty cool things. Many people were questioning how it would perform in real world applications, due to its use of remoting-based interception techniques. I haven't heard much about it recently and am wondering if anyone has had good or bad experiences f...

Is there a way to supply a default MessageTemplateResourceType to a Validator?

I have a class with lots of string properties that need validated. I'm using the Validation Application Block because I'm a big fan of using attributes to solve this kind of need. Everything works great but my manager isn't a fan of the amount of code needed in implementing the Message Template Tokens and resource file. For example: ...

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...

Is " SQL Helper Class " in Microsoft Application Blocks for .NET is excellent ?

Dears from years go i use "SQL Helper" class that exist in Microsoft Application Blocks for .NET and i used it for about 1 year in many projects but after that many senior recommend me not to use as it's have many problems in big projects and i let it but know in a new company they want to use it in a projects ... Could any make hi...

Does the Validation Application Block in Entlib 5.0 support client-side validation?

VAB used to be just server-side bur does the new version of Entlib allow client-side validation for VAB? ...

Setting CommandTimeout in Microsoft's Data Access Application Block (SQLHelper)

I'm using the Data Access Application Block (SQLHelper) to execute SQL against a database. I have one query which takes longer than the default command timeout of 30 seconds. I want to up the timeout, but I don't see any way to do so without cracking open the Application Block. Is there any way to change the CommandTimeout without modify...

Turn off LogEnabled Filter at run time - Logging Enterprise Application Block

Hi, so the story go like this: i'm using the Logging Enterprise Application block that provided by microsoft to log events in our application. The goal is to enabled event viewer logging at loading and then turn it off. What i did is to add EventLog TraceListener which write all our logs into the event viewer. What i'm trying to do ...

(Logging ApplicationBlock) Split log into 2 files according to severity

I want to be able to route all error messages to error.log.txt and all information messages to info.log.txt (regardless of categories). Is it possible? Thanks ...