?
Solved

How to disable web.config Inheritance for Child Applications in Subfolders in ASP.NET?

Posted on 2012-09-04
3
Medium Priority
?
850 Views
Last Modified: 2012-09-06
OK, so I have a website  (myfakewebsite.org)
I have three children applications that need to run on it. (app1, app2, app3)

app1 and app2 run fine because they inherit from the myfakewebsite.org's web.config, but app3 has its own web config, and yet it needs to be ran as myfakewebsite.org/app3/default.aspx.

I have tried the <location path="." inheritInChildApplications="false"> thing and that made my app3 work great! Only trouble was - my app1 and app2 stopped working.

How can I set up my root web config in such way where my app1 and app2 still inherit from root, and app3 does not.

Please provide a code example, and be specific as to where exactly I should place the code.

Thank you much in advance - it is very important!
0
Comment
Question by:vituxa
  • 2
3 Comments
 
LVL 10

Accepted Solution

by:
gaurav05 earned 1500 total points
ID: 38366773
0
 
LVL 1

Author Comment

by:vituxa
ID: 38369248
I have tried it all from that file. Maybe I am not placing it in the right place in the root web.config, but nothing seems to work. Can you please tell me, using
myfakewebsite.org and app1, app2, app3 applications, how exactly and what lines and where in the root web.config file should be placed. I cannot solve this problem, and everyone seems to throw me a link with an article that doesn't help. Please help me.
0
 
LVL 10

Expert Comment

by:gaurav05
ID: 38375186
Hi,

Please provide your web.config code. so we can help you more on this..

and also let us know how you have configured website in IIS means IP address
binding stuff and all.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Prologue It is often required to host multiple websites on a single instance of IIS, mostly in development environments instead of on production servers. I am sure it is not much a preferred solution on production servers but this is at least a pos…
Simulator games are perfect for generating sample realistic data streams, especially for learning data analysis. It is even useful for demoing offerings such as Azure stream analytics, PowerBI etc.
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
As many of you are aware about Scanpst.exe utility which is owned by Microsoft itself to repair inaccessible or damaged PST files, but the question is do you really think Scanpst.exe is capable to repair all sorts of PST related corruption issues?
Suggested Courses

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question