473,467 Members | 2,005 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

IIS 2 level deep

Hi all

i seem to be having a funny error. or maybe it's just me.

I have a ASP.NET C# project that i am working on.

the url for this project is http://localhost/publications whose location is
at C:\inetpub\wwwroot (for argument sake)
there is a default.aspx

everything is working fine! no problems at all.

but when i created http://localhost/main/publications virtual directory and
pointed the location of that vdir to the EXACT same location as the previous
URL. the web app does not behave normally.

for one, i cant access the appSettings in the web.config file using the
ConfigurationSettings class

any ideas why?

Thanks
jason
Nov 18 '05 #1
3 964
Try to set the folder security for NETWORK SERVICE (W2K3) or ASPNET
(WindowsXP) at Read.

Hope this helps!
Franck.

Nov 18 '05 #2
hmm you mean right mouse click on my C:\wwwroot\publications and add user
ASPNET to access list with read permissions?
tried that, didnt help.

but remember. both virtual directories are pointing to the same folder
above, but the 2 level deep virtual directory does not work.

Thanks again
jason

"Franck Quintana" <la*****@wanadoo.fr> wrote in message
news:41***********************@read.news.fr.uu.net ...
Try to set the folder security for NETWORK SERVICE (W2K3) or ASPNET
(WindowsXP) at Read.

Hope this helps!
Franck.

Nov 18 '05 #3
Oh ok I understand now.
It's possible that ConfigurationSettings.AppSettings looks for a Web.Config
file which is in the root directory.

for example http://localhost/main = "c:\inetpub\wwwroot" and
http://localhost/main/publications = "c:\inetpub\wwwroot\publications"

A call to ConfigurationSettings.AppSettings is probably trying to find
Web.Config file in c:\inetpub\wwwroot even if it is in
c:\inetpub\wwwroot\publications

You can try to copy your web.config file in the first level of your virtual
directory just to check if it works.

Good luck,
Franck.

"Jason" <c_*******@mighty.co.za> wrote in message
news:#6*************@TK2MSFTNGP11.phx.gbl...
| hmm you mean right mouse click on my C:\wwwroot\publications and add user
| ASPNET to access list with read permissions?
| tried that, didnt help.
|
| but remember. both virtual directories are pointing to the same folder
| above, but the 2 level deep virtual directory does not work.
|
| Thanks again
| jason

Nov 18 '05 #4

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

Similar topics

2
by: Christopher | last post by:
I have a hash that is several levels deep. ie: 'vars' => { '$filers' => '10.10.10.10/32', '$networksa' => '10.10.10.10/32', '$networksb' => '10.50.0.0/16', '$wintel_boxes' =>...
21
by: Asfand Yar Qazi | last post by:
Hi, After much use of tabs worth 8 spaces, and constantly having to format my C++ code in funny ways to keep all lines within an 80 character line length limit, I'm seriously thinking of...
5
by: Tony Johansson | last post by:
Hello! I'm reading in a book about C++ and that is something that sound strange. It says "Pointers have reference-assignment semantics similar to those in Java. For example, after the...
1
by: linq936 | last post by:
Hi, I am using gcc3.2.3 on Red Hat Linux. I just find a strange thing of exception handling:if I compile the code in debug level, then the exception can be caught; if I compile it in optimized...
2
by: Brian Henry | last post by:
I have a template that can be used a few levels deep, but my images folder is in the top level so i have a structure like this \ |-- Images |------- Template |-- Documents |------- Documents...
2
by: | last post by:
I am looking for a easy way to trap an Exception that may occurr in any one of 30 child web controls to be trapped at the topmost parent WebUser control or Page Level. I have tried variations of...
1
by: Gary Wessle | last post by:
Hi is there some guide lines on how many level deep once can structure the inheritance, I have 3 level deep inheritance setup and just wondering whether this is the norm? each level is...
3
by: raylopez99 | last post by:
The "C# Cookbook" (O'Reilly / Jay Hilyard), section 3.26, is on deep cloning versus shallow cloning. The scanned pages of this book are found here: http://www.sendspace.com/file/mjyocg (Word...
3
by: paulus4605 | last post by:
dears since I'm new to ruby I try to create a form within ruby on rails. this is my controller require "player" class SpelersController < ApplicationController def index @speler =...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
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...
1
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...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.