Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

purpose of ConnectionString element in .NET .config files

What is the difference between storing and reading your application's connection string in the <appSettings> and <connectionStrings> sections of web.config?

like image 305
ChandraShekar vavilla Avatar asked Aug 03 '10 20:08

ChandraShekar vavilla


1 Answers

.NET gives built-in support for managing a connection string along with a provider if specified in the <connectionStrings> section.

Also, built-in membership and role providers depend on the connection string being present in the proper section.

like image 142
kbrimington Avatar answered Oct 14 '22 16:10

kbrimington