Web.Config

  • Thread starter Thread starter Andy Sutorius
  • Start date Start date
A

Andy Sutorius

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
 
Would u mind to recheck there is no web.config files existing in the folder which is 2 level down to the root folder
 
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
 
Back
Top