J
JRL
Can you recommend a way to reference a subfolder for the web.config file?
I have a section in the root web.config file for a site and it works when I
include parts of the config file as external sections.
So for example, the following works:
<connectionStrings configSource="rconnection.config" />
It loads a little file with the connection string in the rconnection.config
file, which sits at the same root level as web.config
Now, what if I wanted to clean up the solution explorer view, by putting
this little file in a directory called configuration. I tried this change:
<connectionStrings configSource="~/configuration/rconnection.config" />
The above file generates an error, as it will not allow relative paths.
How can I call the file within a subdirectory? Is there a special path
descriptor that will avoid the use of '/' yet still allow a subdirectory?
I have a section in the root web.config file for a site and it works when I
include parts of the config file as external sections.
So for example, the following works:
<connectionStrings configSource="rconnection.config" />
It loads a little file with the connection string in the rconnection.config
file, which sits at the same root level as web.config
Now, what if I wanted to clean up the solution explorer view, by putting
this little file in a directory called configuration. I tried this change:
<connectionStrings configSource="~/configuration/rconnection.config" />
The above file generates an error, as it will not allow relative paths.
How can I call the file within a subdirectory? Is there a special path
descriptor that will avoid the use of '/' yet still allow a subdirectory?