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 6060399
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T08:49:16+00:00 2026-05-23T08:49:16+00:00

I have a domain with default top-level site a .Net 2 app. And lots

  • 0

I have a domain with default top-level site a .Net 2 app. And lots of virtual directories underneath with different apps. I can’t get a .Net 4 virtual directory working.

I have read:

.net 4.0 inheriting .net 3.5 web.config?

and I have a similar issue as: Disable web.config inheritance? which has not been solved – the answers to that question that have been given are to use inheritInChildApplications, which can’t go around the configSections tags.

I’ve managed to stop all .Net 2 subapps of the domain from inheriting the top-level
web.config settings, but for the .Net 4 app I can’t seem to.

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

is wrapped around the System.Web section of the parent .Net 2 app, and and I have

<clear/> 

in every section in the Web.Config of the .Net 4 virtual directory app.

Is there any other solution? Perhaps the parent .Net 2 app could be placed on a virtual directory, and the top-level site request could be URL ReWritten without the user’s knowledge?

  • 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-23T08:49:16+00:00Added an answer on May 23, 2026 at 8:49 am

    No, you can’t stop it inheriting, (the InheritInChildApplications=False fix doesn’t cover enough of the top level Web.Config to fix this issue), but you can remove the top level .Net 2 app and redirect requests.

    Using the URL Rewrite module to route requests that would have gone from your top level web application to another “web application” in virtual directory under the web site in IIS, removing almost everything from the top level Web.Config.

    No top level .Net 2 app means nothing for the .Net 4 app in a virtual directory to inherit from.

    IIS setup before:
    Web Site — .net 2 app “root”
    |
    |– .net 2 app “one”
    |– .net 4 app “two”(not working!!)

    IIS setup after:
    Web Site — rewrite requests to .net 2 app in virtual directory
    |
    |– .net 2 app “one”
    |– .net 4 app “two “
    |– .net 2 app “root”

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

Sidebar

Related Questions

Let's say I have a non default app domain. I want to get a
I have 10 top-level domains e.g. example1.com, example2.com, example3.com, etc, and each domain has
I have a domain class containing a couple of fields. I can access them
We have a website build in the umbraco 4.1 cms (webforms) default .net 3.5
I have a domain domain.com and subdomain sub.domain.com Those two domains have different ftp
Say you have an domain entity with business logic for initializing its default values.
I have a domain-specific, specialized search engine. The home page of the site presents
We have our domain model declared in rusty old hbm files, we wish to
I have a domain and a group of sub-domains that require authentication to access.
I have one question regarding domain account. I have one domain controller where all

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.