Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version
Go to top

Create Custom Application Block Using .NET Enterprise Library

, 21 Oct 2009
This white paper is written in a view to help developer to create custom application block using .NET Enterprise Library.
CustomAppBlock.zip
CustomAppBlock
SampleCustomBlock
SampleCustomBlock
bin
Debug
Microsoft.Practices.EnterpriseLibrary.Common.dll
Microsoft.Practices.ObjectBuilder.dll
Project.Practice.DB.dll
Configuration
Project.Practice.DB.csproj.user
Properties
sn.snk
SampleCustomBlock.suo
WebSite2
App_Data
Bin
Microsoft.Practices.EnterpriseLibrary.Common.dll
Microsoft.Practices.ObjectBuilder.dll
Project.Practice.DB.dll
WebSite2 (2).suo
<?xml version="1.0"?>
<!-- 
    Note: As an alternative to hand editing this file you can use the 
    web admin tool to configure settings for your application. Use
    the Website->Asp.Net Configuration option in Visual Studio.
    A full list of settings and comments can be found in 
    machine.config.comments usually located in 
    \Windows\Microsoft.Net\Framework\v2.x\Config 
-->
<configuration>
	<configSections>
		<section name="dbConfiguration" type="Project.Practice.DB.Configuration.DBSettings,Project.Practice.DB, Version=1.0.0.0, Culture=neutral, PublicKeyToken=e6353c372c425103" allowDefinition="Everywhere" allowExeDefinition="MachineToApplication" restartOnExternalChanges="true"/>
	</configSections>
	<!-- DB Configuration -->
	<dbConfiguration defaultDBProvider="DefaultFilePath">		
		<dbProviders>
			<add name="DefaultFilePath" type="Project.Practice.DB.DBProvider,Project.Practice.DB" userID="admin" password="admin" server="militaryZoneArea" database="xyz"/>
			<add name="CustomFilePath" type="Project.Practice.DB.DBProvider,Project.Practice.DB" userID="admin" password="admin" server="militaryZoneArea" database="xyz"/>
		</dbProviders>
	</dbConfiguration>
	<appSettings/>
	<connectionStrings/>
	<system.web>
		<!-- 
            Set compilation debug="true" to insert debugging 
            symbols into the compiled page. Because this 
            affects performance, set this value to true only 
            during development.
        -->
		<compilation debug="true">
			<assemblies>
				<add assembly="System.Management, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
				<add assembly="System.Configuration.Install, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/></assemblies></compilation>
		<!--
            The <authentication> section enables configuration 
            of the security authentication mode used by 
            ASP.NET to identify an incoming user. 
        -->
		<authentication mode="Windows"/>
		<!--
            The <customErrors> section enables configuration 
            of what to do if/when an unhandled error occurs 
            during the execution of a request. Specifically, 
            it enables developers to configure html error pages 
            to be displayed in place of a error stack trace.

        <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
            <error statusCode="403" redirect="NoAccess.htm" />
            <error statusCode="404" redirect="FileNotFound.htm" />
        </customErrors>
        -->
	</system.web>
</configuration>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

santosh poojari
Technical Lead
India India
Whatsup-->Exploring--> MVC/HTML5/Javascript & Virtualization.......!
www.santoshpoojari.blogspot.com

| Advertise | Privacy | Mobile
Web01 | 2.8.140916.1 | Last Updated 21 Oct 2009
Article Copyright 2009 by santosh poojari
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid