Do Web.Configs inherit each other?

D

darrel

I just noticed something in one of my applications which is in a folder
within another application.

My application is grabbing the DB connection string from the Web.Config
file:

strConnect = ConfigurationSettings.AppSettings("DBConn")

My application's Web.Config file doesn't have this DBConn appSettings key,
so I assume it's grabbing it from the parent applications web.config file?

In addition, these nested apps are all sharing the same forms authentication
form (shared via the machine key).

-Darrel
 
I

intrader

I just noticed something in one of my applications which is in a folder
within another application.

My application is grabbing the DB connection string from the Web.Config
file:

strConnect = ConfigurationSettings.AppSettings("DBConn")

My application's Web.Config file doesn't have this DBConn appSettings key,
so I assume it's grabbing it from the parent applications web.config file?

In addition, these nested apps are all sharing the same forms authentication
form (shared via the machine key).

-Darrel
Correct, inheriting does occur.
 
D

darrel

Correct, inheriting does occur.

Ah. That's useful. Is that by default or due to our apps sharing the
authentication mode across apps?

-Darrel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,228
Members
46,818
Latest member
SapanaCarpetStudio

Latest Threads

Top