473,401 Members | 2,068 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,401 software developers and data experts.

ASP.Net using wrong web.config for virtual directory

In IIS 7 I have created a web site which is located at C:\MyWebSite
and in IIS Manager created a virtual folder which points to C:
\MyVirtualFolder. The virtual folder was then converted to an
application using a separate application pool.

However when accessing the virtual folder URL in a web browser it
appears to be using the web.config of the root web site.

What needs to change to allow the web.config in the virtual directory
to be used?
Nov 13 '08 #1
3 8942


"Robin9876" <ro*******@hotmail.comwrote in message
news:d0**********************************@s1g2000p rg.googlegroups.com...
In IIS 7 I have created a web site which is located at C:\MyWebSite
and in IIS Manager created a virtual folder which points to C:
\MyVirtualFolder. The virtual folder was then converted to an
application using a separate application pool.

However when accessing the virtual folder URL in a web browser it
appears to be using the web.config of the root web site.

What needs to change to allow the web.config in the virtual directory
to be used?
I don't understand where C:\MyWebSite comes into it.

--

Joe Fawcett (MVP - XML)
http://joe.fawcett.name

Nov 13 '08 #2
In IIS the web site's file location is C:\MyWebSite and then the
virtual directory was created in IIS on this web site with its file
location as C:\MyVirtualFolder\
On 13 Nov, 17:59, "Joe Fawcett" <joefawc...@newsgroup.nospamwrote:
"Robin9876" <robin9...@hotmail.comwrote in message

news:d0**********************************@s1g2000p rg.googlegroups.com...In IIS 7 I have created a web site which is located at C:\MyWebSite
and in IIS Manager created a virtual folder which points to C:
\MyVirtualFolder. The virtual folder was then converted to an
application using a separate application pool.
However when accessing the virtual folder URL in a web browser it
appears to be using the web.config of the root web site.
What needs to change to allow the web.config in the virtual directory
to be used?

I don't understand where C:\MyWebSite comes into it.

--

Joe Fawcett (MVP - XML)http://joe.fawcett.name
Nov 14 '08 #3
I got this to work by adding the following (with a closing tag) to the
root web.config
<location path="." inheritInChildApplications="false">

On 14 Nov, 10:05, Robin9876 <robin9...@hotmail.comwrote:
In IIS the web site's file location is C:\MyWebSite and then the
virtual directory was created in IIS on this web site with its file
location as C:\MyVirtualFolder\

On 13 Nov, 17:59, "Joe Fawcett" <joefawc...@newsgroup.nospamwrote:
"Robin9876" <robin9...@hotmail.comwrote in message
news:d0**********************************@s1g2000p rg.googlegroups.com...In IIS 7 I have created a web site which is located at C:\MyWebSite
and in IIS Manager created a virtual folder which points to C:
\MyVirtualFolder. The virtual folder was then converted to an
application using a separate application pool.
However when accessing the virtual folder URL in a web browser it
appears to be using the web.config of the root web site.
What needs to change to allow the web.config in the virtual directory
to be used?
I don't understand where C:\MyWebSite comes into it.
--
Joe Fawcett (MVP - XML)http://joe.fawcett.name
Nov 14 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Tim Zych | last post by:
Does anybody know what's wrong with this authentication? I'm following the book ASP.Net Kick Start's advice.... 1) Create a new ASP.Net app 2) Create a web.config file in the root directory...
10
by: Wm. Scott Miller | last post by:
We have a intranet site that allows one of our departments to search a set of pdfs and then look at them. Only problem is that only they and us geeks should be allowed to see the pdfs. We have it...
6
by: Raghu | last post by:
Is it possible to have multiple web.config files in a given virtual directory in different directories? For example: http://localhost/myapp (Virtual directory maps to C:\MyApp)...
8
by: Nate | last post by:
I am running on Window 2003. I have a website built in ASP.NET 2.0. I need to have a Virtual Directory running an application in 1.1. I have configured each in its own Application Pool. The 1.1...
1
by: Gordowey | last post by:
Hi all, I have a questioion about how to configure my virtual directory I have my website at "c:\inteput\wwwroot", and I have also a virtual directory "c:\inteput\wwwroot\admin" I am using...
2
by: tshad | last post by:
I am trying to use my IIS web server on my local machine for testing my web site. The problem is that periodically it will not use the virtual directory for the root. This happens for my...
2
by: tshad | last post by:
I have set up a Virtual Directory underneath my normal Web Site in IIS 6 for 2 of our sites. One of them works file. The other one is giving me an error:...
6
by: Eric | last post by:
Hi Everyone, I have an ASP 1.1 website being hosted in a virtual directory that is a child node of an ASP 2.0 website. So I have: http://mainapp (which is a 2.0 site) And: ...
4
by: tshad | last post by:
I have a site www.stf.com and a site www.stfstage.com (where I do all my testing). The problem is that www.stfstage.com is only internal and I need to get access from the outside (without...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.