[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 864
  • Last Modified:

how do I know what web.config file is being used

Greetings-
     I inherited a mess.  I have a broken website and I am looking at it in IIS7.  I cannot tell what web.config file is being used.  There are 15 of them in the directory.  I just don't know where to look.  Any direction would be great!

Thanks!
0
Daeta42
Asked:
Daeta42
3 Solutions
 
Khalid Mehmood AwanCommented:
Open project and open web.config and try saving it as (but dont save as actually), it will take you to the folder where it is located.

2nd way is to rename web.config files one by one if you can afford some down time :-)
0
 
Anurag ThakurTechnical ManagerCommented:
there will be only one file with the name as web.config and rest all can be gracefully ignored
0
 
dannocrackerCommented:
Actually, there is a hierarchy of config files. Those which are below your web site's file override the ones above when a browser points there. See http://www.freewebdevelopersite.com/2011/04/17/asp-net-4-0-configuration-hierarchy-machine-config-and-web-config-inheritance/
0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
Daeta42Author Commented:
Thank you all for the replies...  I learned so much.  I guess I should qualify my question.  How do I find out where it tells the site to use web2.config.  I found that the system is using that one via khalidmehmoodawan suggestion of renaming the files.  It was a tedious process and there has to be a way to tell the site to use that specific file.  I just dont know where.

Cheers!
0
 
Daeta42Author Commented:
Thank you all for the direction.  I learned a lot of things I didn't know before.  I was able to fix my issues and press forward.

Cheers!

~~Daeta
0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now