Web.Config file path question "<appSettings file=..."

G

Guest

Hi, I have a web site that I am creating locally on my workstation's "C"
drive. I have a reference in my web.config to a resource file (it contains
global keys) using "\" as the root. Everything works fine. When I move it to
a test server the mapping to the file no longer works unless I include the
drive letter "D". I don't have to reference the drive letter on my
workstation why would I have to do it on test? I thought "\" meant: "The root
of the current drive".
This is the tag...

<appSettings file="\Resources\Company.Config">

Thanks for your thoughts!
 
G

Guest

Check and make sure you are at root on the server. Websites have a lot of
flexibility and it is possible your site is a) a root on the local box and b)
a subweb on the server. If so, it is looking to root to attempt to find path
and root is at least one directory up from where you are expecting it to be.


--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************
 

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,731
Messages
2,569,432
Members
44,832
Latest member
GlennSmall

Latest Threads

Top