473,473 Members | 1,933 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

IDE and folders

DLI
We have a web app developed in Visual Studio 2003 v 7.1.3 using Framework
1.1.4
When running the project in the IDE on a shared development server running
Windows 2003 and IIS 6.0 or my local machine which is XP and IIS 5.1, I have
the following problem:

Since we are developing multiple sites on the same machine, each website has
its own folder under the default website in IIS. When the project is
compiled and the website is viewed via a browser, the root relative paths to
images and redirects all work fine. When we use the IDE to debug or run the
project, the root relative paths do not work correctly. This makes debugging
and testing a real chore since we use a lot of shared controls and shared
images and we have two folders protected by forms authentication.

Is there a way to tell the IDE to use a specific folder as the root for root
relative paths?
TIA



Jan 1 '08 #1
2 933
DLI
Here is an example of what I am encountering:
In IDE clicking this link generates:

http://localhost/services/Login.aspx

generates an error because it can't find the file

the url is missing the folder MySite so I need to plug it in the url on the
browser

http://localhost/MySite/services/Login.aspx
On server using Internet explorer and IIS generates:

http://MySite/services/Login.aspx

which works as it should.

How do I get the IDE to add the root folder name of each seperate site?
Jan 1 '08 #2
DLI wrote :
Here is an example of what I am encountering:
In IDE clicking this link generates:

http://localhost/services/Login.aspx

generates an error because it can't find the file

the url is missing the folder MySite so I need to plug it in the url on the
browser

http://localhost/MySite/services/Login.aspx
On server using Internet explorer and IIS generates:

http://MySite/services/Login.aspx

which works as it should.

How do I get the IDE to add the root folder name of each seperate site?
I guess you are using a URL "/services/Login.aspx" ?

Some options:

1) use a real relative path "../services/Login.aspx", but you need to
work out how many "../" you need (and that can be different for
different forms)
2) for "runat=server" controls (like LinkButtons), use the
"~/services/Login.aspx" syntax. That "~" is translated into the current
application-root, so debugging will use 'http://localhost/MySite' and
on the server it will use 'http://MySite'.

For 2) note that the translation is done server-side. It only works for
URLs in Web- or html-controls with runat=server, it does not work for
URLs that are used in plain html text.

Hans Kesting
Jan 2 '08 #3

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

Similar topics

2
by: Karuppasamy | last post by:
Hi I want to populate all the files and folders of System in a Treeview control like Windows Explorer. I try this using File System Objects. But sometimes I am getting an error like 'Access...
5
by: George Hester | last post by:
If I have 1 Virtual Dirctory with 2 different subfolders are these 2 different folders different virtual folders? Or if I have 2 different Virtual Directories each containing a subfolder are these...
1
by: Jason Steeves | last post by:
Does anyone know an easy way to get all of the folders and their sub-folders and their sub-folders and so on? I need to get all of the folders and their paths from an inputted parent folder...
4
by: Noa | last post by:
Hi, Is there a way to use OpenFileDialog1 in order to multi-select folders? I saw in msdn site a sample of multi-file-selections. I need to select multiple folders and to apply an algorithm on...
0
by: Bob | last post by:
Hi, I'm new to Python and I want to create a script that will import contactitems into an Outlook Public Folder. Therefore I've installed the Python for Windows Extensions. This way I can...
3
by: sva | last post by:
Using C# for an application in which I am working on, I need to display the available shared folders on the computer that's running the application. The shared folder paths need to be in UNC format...
1
by: =?Utf-8?B?UmFjaW5yaG9uZGE=?= | last post by:
I had a hard drive failure and had to re-load Microsoft Office XP. When I first loaded, I had no data files so I imported my pst files from my old hard drive and now I have double of everything...
1
NarenMCA
by: NarenMCA | last post by:
Hi, The below code in MS Outlook gives me the names of folders in "public folders". I am looking forward to get all the subfolders and files in "Public folders" Please assist me in this. ...
5
by: Per Juul Larsen | last post by:
Hi. My application creates empty libraries. How do I ensure that the user copies at least one or more picture files (.jpg) in each of the empty folders ? Result , no empty folders! regards pjl
1
by: veer | last post by:
hi it looks a silly question but i m getting confused actually i want to copy folders from one location to another like from C:\abc To D:\xyz here abc and xyz are two folders in c and d drive it...
0
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,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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,...
0
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...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.