473,725 Members | 2,070 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Web.Config file path question "<appSettin gs file=..."

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="\Resource s\Company.Confi g">

Thanks for your thoughts!
Nov 19 '05 #1
1 2852
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!
*************** ************
"Shark Bait" wrote:
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="\Resource s\Company.Confi g">

Thanks for your thoughts!

Nov 19 '05 #2

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

Similar topics

6
7066
by: Mason A. Clark | last post by:
LAST WORD(s): 1. MSIE6 and Firefox will go to the top of the page on command <a href="#top">go upsy</a> even if there is NO name="top" or id="top" They know what a "top" is :-) Opera does not.
2
2774
by: Gustavo Randich | last post by:
Hello, (Using DB2/LINUX 8.2.0) After compiling the STRIP migration UDF (found at http://www-106.ibm.com/developerworks/db2/library/samples/db2/0205udfs/), if I try to execute: values char(STRIP('0000345.50','L','0'),20) @
3
3642
by: deko | last post by:
SELECT TxType_ID, TxTypeName FROM tblTxType UNION SELECT Top 1 TxType_ID, "<Payment Account>" FROM tblTxType ORDER BY ; The problem I'm having is that the Top 1 "TxType_ID" brings up a TxTypeName in the combo box -- rather than "<Payment Account>". It doesn't seem to matter what the first argument is after UNION SELECT, as long as there is no collision of ID numbers, but what is the best practice
2
1955
by: Quentin Huo | last post by:
Hi, I am trying to dynamically create <asp:TextBox> controls in a page, like: Label lbl = new Label(); TextBox1 = new TextBox();
7
3582
by: Venus | last post by:
Hello, I am trying to generate a dynamic form at runtime and would like to do it using "<asp: ..." form elements as follows Build up the string that is placed somewhere in the HTML code the same way like regular input fields can. strForm = "<form name=""myForm"" runat=""server"">" & vbCrLf strForm += "<asp:button name=""myName"" .... runat=""server"" />" & vbCrLf
2
3759
by: Larry Woods | last post by:
I am trying to put a description on a Constructor of a class. All doc says to Import System.ComponentModel, which I do. But in order to get "<Description" to be recognized I have to use "System.ComponentModel.Description(..." and, even then, it doesn't display when I reference the class. First, why do I still have to use "System.ComponentModel" when I have Imported it? But, secondly...and more important...why doesn't the desciption...
7
6280
by: Alex Maghen | last post by:
I have some client-side JavaScript that I want to run whenever a pulldown <SELECT> is changes on th client. I'm trying to do this as follows... <select id="MyPulldown" onchange="handleProblemChange();" runat="server"> If I do this, I get client-side javascript errors because the id "MyPulldown" doesn't exist. It's been mangled into this crazy-named thing that I can't use. How do I fix this so that the ID that I give it ends up being...
4
5741
by: raenkrus | last post by:
Hello everyone My question is, how can I translate an html condition like this one <!--> <style type="text/css"> /* css code here... */ </style> <!-->
18
10752
by: zoilus | last post by:
Can not determine how "<?=PHP_SELF?>" is supposed to work. The below is the line of code. <!-- <form name="search" method="post" action="<?=$PHP_SELF?>"--> When the above statement is run the following is the result. You don't have permission to access /dev/forms/forms_testing/< on this server.
0
8888
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
1
9176
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9113
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8097
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6011
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4519
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3221
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2635
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2157
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.