Faqs on asp.net,c#,vb.net and sqlserver2005

this blog covers all the Faqs related to .net technologies like asp.net,vb.net,c#.net,ajax,javascript and sqlserver2005.

Mar 13, 2008

Using Enterprise Library 1.1 with .NET 2.0

Enterprise Library problem while using ASP.NET 1.1 webservice in ASP.NET 2.0 webservice.

Introduction
Microsoft's Enterprise Library stands out as one of those rare collections of code with a truly representative name - an enterprise's library of useful features. Many architects deem them so useful they mandate the library for all of their applications. Unfortunately, there are situations when such decisions can prove painful.

Troubles encountered when running components using the Enterprise Library 1.1 with the ASP.NET 2.0 Beta releases became one such situation. Suddenly that enterprise library was far from a productivity boon. It did not even work with another version of ASP.NET!

The culprit turned out to be changes in ASP.NET 2.0 configuration mechanics. This adversely effected how Enterprise Library 1.1 components load. The immense gaggle of information residing within the many XML nodes of the Library's numerous configuration files, such as, dataConfiguration.config and loggingConfiguration.config , could not be either properly read or deserialized without some hack or fix.

Organizations leveraging Enterprise Library 1.1 bits within their .NET 1.1 components suddenly faced some tough choices. Avoid ASP 2.0? Wait for Enterprise Library 2.0 and port code? Hack Enterprise Library 1.1? Drop the Enterprise Library altogether from their components? None of these options appeal to an enterprise architect.

This article explores a different solution, based on some code that I've referred to as the Enterprise Library Adapter , which is available as the sample download for this article. One based on adapting how Enterprise Library 1.1 obtains its configuration information and instantiates its different application blocks. As seen in
Figure-1 the use of the Enterprise Library Adapter provides a little assistance via the Library's very own public methods to solve the problem.
For more details on implementation please read:http://microsoft.apress.com/feature/80/using-enterprise-library-11-with-net-20

Happy Programming

0 Comments:

Post a Comment

<< Home