ASP.NET Webforms project is reading from a web.config in a completely different solution on my PC when debugging

75 views Asked by At

My web app is reading from a web.config from a completely different project with the same name in another solution. How can I check/change what web..config my project is referencing. I want to ensure it is the web.config in the current project.

1

There are 1 answers

2
McGaz On BEST ANSWER

If it's got the same name (Copy of a project?), maybe your debugging settings are the same, e.g. do they use the same IIS Express port number?

Once you start a project IIS Express will remember where the code is. If you stop that project, open another and run it using the same port number it will get confused and view the code from the first project.