How to read the web.config file in console application

create a C# VS2005 Console application that read a web.config file to get a connection string and connect to a database, open the web.config using visual studio and save as in the bin directory with consoleapplication name. For example if console application name is myapp then config file name called myapp.exe.config, then using ConfigurationManager.ConnectionStrings can read the string values from the config. files.

Comments

Popular posts from this blog

IBM FileNet: Bulk Processing using JavaScript

DB2 Date Time Functions

File Net Insert Document