Questions tagged [application-blocks]

45 questions
19
votes
6 answers

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…
user49572
12
votes
1 answer

Polly Framework VS Microsoft Transient Fault Handling

I want to introduce transient fault handling in our .net application. I saw two nu-get packages are available as of now. One is Polly framework and the other one is Microsoft transient fault handling application block. We investigated and saw both…
Demon Hunter
  • 233
  • 1
  • 3
  • 15
7
votes
2 answers

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.
user65266
  • 217
  • 2
  • 5
  • 10
6
votes
1 answer

EntLib5: Loggin application block not logging to Event Log (exception: type LogWriter cannot be constructed)- Can anyone help?

HI there, I just setup the logging application block part of Enterprise Library 5. I think i have done it correct but its not logging to the event log it errors on the write method and gives me the following exception. The type LogWriter cannot…
4
votes
6 answers

Using Microsoft's Application Blocks

I haven't done a lot of .NET programming, but I've 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…
Kristopher Johnson
  • 81,409
  • 55
  • 245
  • 302
4
votes
3 answers

Are Microsoft Code Contracts unsuitable for validating user input?

I've seen it written elsewhere on SO that while the Enterprise Library Validation Application Block is geared towards validating user inputs, Code Contracts are meant to prevent programmer errors. Would you support this opinion? Why?
urig
  • 16,016
  • 26
  • 115
  • 184
3
votes
1 answer

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…
KevinT
  • 3,094
  • 4
  • 26
  • 29
3
votes
1 answer

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…
AJM
  • 32,054
  • 48
  • 155
  • 243
3
votes
2 answers

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.
Matt Casto
  • 2,150
  • 1
  • 22
  • 32
3
votes
0 answers

Reliability of Mobile Application Blocks Community Release

This question relates to my previous one on Using only parts of Mobile Application Blocks Community Release for WM 6.x Development Most of my questions were answered there, but still have one open issue left. A community driven successor to MCSF is…
Sebastian Zaklada
  • 2,308
  • 1
  • 14
  • 25
3
votes
1 answer

Use Enterprise library for OLEDB Access database

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 -…
nunu
  • 3,184
  • 10
  • 43
  • 58
3
votes
3 answers

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…
Mashmagar
  • 2,556
  • 2
  • 29
  • 38
2
votes
1 answer

Using only parts of Mobile Application Blocks Community Release for WM 6.x development

I am in a process of planning an architecture for a line of business distributed system, where many different devices of different types must be supported in a very similar use cases scenarios. Among others, I will need to support Windows Mobile…
2
votes
2 answers

How to create database for a Semantic Logging Application Block with SqlDatabaseSink

How to set up the SQL Server database for Semantic logging. Does the table for logging information needs to be created earlier? If yes, what is the schema to be used. I have the following code : var listener = new ObservableEventListener(); string…
2
votes
2 answers

Add date to log file name in Logging Application Block

I'm using the Microsoft Logging Application Block (version 5 beta 2) and I'm trying to dynamically set the file name of a log file to the year month and day (and then write a new log file every day). However, at runtime, the logger ignores any…
RobertC
  • 323
  • 1
  • 3
  • 12
1
2 3