Groups | Blog | Home
all groups > asp.net > march 2004 >

asp.net : Web.Config


Andy Sutorius
3/24/2004 10:39:51 PM
I have a web application with a web.config in the root folder (virtual
folder) which contains a database connection string.

I have a new web form 2 folder levels below the web.config and it cannot
read the connection string in web.config.

I also have a web form which is located 3 folder levels below web.config and
it reads the connection string without any problems.

Why would one web page be able to read the web.config and not the other?

Thanks!

Andy Sutorius

Jatheesh
3/24/2004 10:51:05 PM
Would u mind to recheck there is no web.config files existing in the folder which is 2 level down to the root folder
Andy Sutorius
3/25/2004 4:38:08 PM
Problem resolved. I had a global.asa (not global.asax) file in the root
folder which also had the connection string in it. When I renamed the file
to global.asa.old and the web.config started working on the 2nd level (and
3rd).

Thanks

Andy Sutorius

AddThis Social Bookmark Button