Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 702767
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T03:45:25+00:00 2026-05-14T03:45:25+00:00

I am wondering is this normal when you add this into your web.config <location

  • 0

I am wondering is this normal when you add this into your web.config

<location path="."  inheritInChildApplications="false"> </location>

The debugger should stop working. Like when I add this to my site and try to run in debug mode it won’t activate any of my debug points nor will it lock up Visual studios 2008. I can have it running and still make edits to my C# code.

I take the line away and I get the debug mode back and it locks up VS2008.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T03:45:26+00:00Added an answer on May 14, 2026 at 3:45 am

    UPDATE #3 After doing a lot of research into this attribute I have brought everything together in one article here:

    • http://runtingsproper.blogspot.com/2010/04/solved-breaking-parent-webconfig.html

    Original Post

    This does appear to be normal behaviour. I have experienced the same thing and it stopped me in my tracks for a while trying to figure out what I had done wrong.

    If you have the location tag as above then when you press the play button to start debugging it will compile, launch the site and then immediately close the debug session. Your website will load up and you will be able to use it as normal but if you look at it in visual studio you will see the debug play button is available and the app is not considered to be currently being debugged.

    Commenting this out and repeating the debug process results in it immediately starting to debug correctly again.

    I am in the situation now where I have to comment the tag out locally when I do work on a site with this in and then remember to uncomment it before I upload it again to the server.

    Pretty annoying because I hate leaving things like this to the chance of me remembering.

    Hopefully I will be able to automate this attribute when .net 4 comes out and we get our hands on the web.config transformation tools.

    UPDATE
    While doing some research into this for an article I am writing it seems that this is a known bug:

    • https://connect.microsoft.com/VisualStudio/feedback/details/293526/web-debugging-fails-if-compilation-element-is-defined-inside-of-location-element

    The current work around is as suggested – comment out the <location> tag to debug.

    UPDATE #2 While doing some research into this problem I have found a scenario which can cause a server error. It doesn’t solve your problem unfortunately but if you are using the <location> tag then you might run into this problem soon enough:

    • SOLVED: IIS7, validateIntegratedModeConfiguration and inheritInChildApplications clash

    The article describes a technique which basically creates multiple versions of tags in the web.config inside and outside of the <location> tag. In my article I create a second <system.webServer> tag and when I saw it worked I immediately thought of this thread. While it did let me create a second <system.web> and move the <compilation> tag outside of the <location> I then ran into further dependency problems which prevented me from successfully compiling.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My Developer file is 12 GB. I am wondering if this is the normal
I've been wondering this for a while but since it hasn't come up much
I've been wondering this for some time. As the title say, which is faster,
Wondering if this is possible. We have an 3rd Party library that contains identification
Just wondering is this kind of code recommended to increase performance? void functionCalledLotsofTimes() {
I'm wondering if this is a good design. I have a number of tables
I'm wondering if this is possible in SQL. Say you have two tables A
I was always wondering about this seemingly utopic world of open source. Assuming the
I been wondering about this for a while. It seems like there are so
I'm wondering if this is a sufficient algorithm for finding the best value with

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.