values in web.config in subfolder not read

I

interuser

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
 
R

Ray Costanzo

You have to configure that subfolder as an application in IIS on the remote
server.

Ray at work
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,763
Messages
2,569,562
Members
45,039
Latest member
CasimiraVa

Latest Threads

Top