473,378 Members | 1,412 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,378 software developers and data experts.

values in web.config in subfolder not read

Hi.
I have some values in web.config of a subfolder:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>

<add key="remoteFile" value="/TEST/ACCBALEXP.TXT" />
<add key="UseSqlLogging" value="False" />

</appSettings>
</configuration>

When debugging on my pc, these values are read ok ( Dim remoteFile As
String = ConfigurationSettings.AppSettings("remoteFile") )
When deploying and running on development server, these values come as
nothing, ie are not read.
The only way to read these values is to put them in web application's
root directory web.config

Any ideas why this is happening and how to fix?
Does it have to do with machine.config configuration?

Thank you

Apr 24 '07 #1
1 1957
You have to configure that subfolder as an application in IIS on the remote
server.

Ray at work

"interuser" <in*******@hotmail.comwrote in message
news:11**********************@t39g2000prd.googlegr oups.com...
Hi.
I have some values in web.config of a subfolder:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>

<add key="remoteFile" value="/TEST/ACCBALEXP.TXT" />
<add key="UseSqlLogging" value="False" />

</appSettings>
</configuration>

When debugging on my pc, these values are read ok ( Dim remoteFile As
String = ConfigurationSettings.AppSettings("remoteFile") )
When deploying and running on development server, these values come as
nothing, ie are not read.
The only way to read these values is to put them in web application's
root directory web.config

Any ideas why this is happening and how to fix?
Does it have to do with machine.config configuration?

Thank you
Apr 24 '07 #2

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

Similar topics

0
by: Joe Abou Jaoude | last post by:
I have an application that support multiple cultures. the main folder is english, and the subfolder "French" is french. I don't want to create a web config in the subfolder french to specify the...
1
by: Peter Avalos | last post by:
I am trying to configure a set of access rules for a subfolder in my project. The folder is a subfolder in the application folder and cannot read the dll file in the application's bin folder. How...
2
by: John Spiegel | last post by:
Hi all, I'm working through examples on configuring ASP.NET (all on local machine). The first exercise deals with the customErrors in the config files. The machine.config file has a...
2
by: Simon-Pierre Jarry | last post by:
Hi, I created a custom HttpModule for managing the security of my application. in "Init" sub, I regsiter the events doing that : Public Sub Init(ByVal context As System.Web.HttpApplication)...
5
by: Jason Chan | last post by:
I have a subfolder in a webapp How can the aspx in the subfolder access the web.config in the webapp. I.e. I stored the connectionstring in the \webapp\web.config how the...
1
by: Abraham Andres Luna | last post by:
hello everyone, i set up a folder to have integrated windows authentication through iis. in order for this to work with asp.net, i have to set the identity.impersonate=true in the web.config for...
1
by: rafiki31 | last post by:
Hi, im having some problems with an application im building. Im nesting a second application with in an already establish website. So in other words i have my root with one webconfig and then i ahve...
1
by: mattgarvin | last post by:
Hello, my company hosts many websites, and we want to add a Feedback Form (like "Contact Us") that can be re-used on all of them just by "dropping in" a new directory containing the code. My boss...
5
by: daokfella | last post by:
I have a custom web.config section similar to the following: <CustomAuthSettings attr1="" attr2=""> <Locations RedirectUrl="Invalid.aspx"> <add Path="test.aspx" Roles="1,2,3" Permissions="4,5,6"...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.