Posts Tagged: Enterprise Library
-
Mar 29, 2010
2 CommentsSolution for “System.Security.Policy.PolicyException: Required permissions cannot be acquired”
This bug is generally visible at the deployment time for ASP.Net 2.0 applications which is built on the Enterprise Library 2.0 (Jan 2006). Specially this will occur when we are deploying in shared hosting (eg: godaddy..etc). The error message screen shot is given below. In the internet everybody suggested to put the <trust level=”Low” originUrl=”" />...
-
Jul 30, 2009
4 CommentsHow to Logging Application Block in Enterprise Library
What is Logging? Logging is nothing but the recording of processes, including initial parameters, to allow a detailed view into the activities of a system. When to Use the Logging Application Block If your applications have a requirement to log information to the event log, e-mail, a database, a message queue, Windows Management Instrumentation (WMI), or a file,...
-
Jul 30, 2009
No CommentsHow to Exception Handling Block using Enterprise Library
Types of Exception Handlers The Exception Handling Application Block is designed to support the typical code contained in catch statements in application components. Instead of repeating this code (such as logging exception information) throughout identical catch blocks in an application component, the application block allows developers to encapsulate this logic as reusable exception handlers. The Exception Handling...