OIS Site Forum

Forum and Support Site
Welcome to OIS Site Forum Sign in | Join | Help
in
Home Forums

Microsoft Enterprise Library

Last post 10-30-2006, 9:34 PM by admin. 0 replies.
Sort Posts: Previous Next
  •  10-30-2006, 9:34 PM 19

    Microsoft Enterprise Library

    I've seen quite a few questions and postings regarding how to use MS Enterprise Library on our server in the past several months, I decided to test it out myself.

    I found that a straight import of the library will not work on a shared hosting server because the hosting server do not have the necessary registry entries. By default, Enterprise Library Application Blocks include instrumentations which write log to Event Log, WMI Event and Performance counter.

    In order for you to use Enterprise Library on a hosted environment that does not allow instrumentation, you'll need to recompile the application blocks with the instrumentation disabled.

    1) Goto Start -> Programs -> Microsoft patterns & practices -> Enterprise Library - June 2005 -> Application Blocks for .NET -> Enterprise Library Solution
    2) Once the Solution opens in VS.NET 2003, right click on Common project in the Solution Explorer and bring up the property
    3) Navigate to Configuration Properties -> Build
    4) Remove USEWMI;USEEVENTLOG;USEPERFORMANCECOUNTER from the Conditional Compilation Properties property
    5) Recompile the Common project
    6) Copy the dlls to the bin directory from the build location by running the builtin batch file. Goto Start -> Programs -> Microsoft patterns & practices -> Enterprise Library - June 2005 -> Copy Assemblies to bin Folder
View as RSS news feed in XML
Powered by Community Server (Personal Edition), by Telligent Systems