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

Home Posts Topics Members FAQ

Working in a subdirectory when using ASP.NET & Visual Studio .NET 2005

I am creating an ASP.NET application in a subdirectory of what IIS uses as
the root directory (C:\Inetpub\wwwroot\). I am using the version of IIS that
comes with Windows XP Pro SP2. Some of my code in my ASP.NET application
uses root-relative URLs, such as /images/background.gif. However, because
the subdirectory my application is in is not the root directory of IIS, I
cannot test my application on my machine. Is there any way to avoid this
problem?
--
Nathan Sokalski
nj********@hotmail.com
http://www.nathansokalski.com/
Dec 22 '06 #1
2 954
Nathan,

Try never to use fixed paths in webdeveloping; use the virtual path's,
src="images/Logo.gif"

Cor

"Nathan Sokalski" <nj********@hotmail.comschreef in bericht
news:Op**************@TK2MSFTNGP06.phx.gbl...
>I am creating an ASP.NET application in a subdirectory of what IIS uses as
the root directory (C:\Inetpub\wwwroot\). I am using the version of IIS
that comes with Windows XP Pro SP2. Some of my code in my ASP.NET
application uses root-relative URLs, such as /images/background.gif.
However, because the subdirectory my application is in is not the root
directory of IIS, I cannot test my application on my machine. Is there any
way to avoid this problem?
--
Nathan Sokalski
nj********@hotmail.com
http://www.nathansokalski.com/

Dec 23 '06 #2
in general I do, but in some cases (such as when creating controls that will
be used in pages that are in different directories, or for values in
Web.config's appsettings section) it is either easier or more efficient to
do it this way. But either way, I need a way to test my application on my
Windows XP Pro SP2 version of IIS and have it treat the folder my
application is in as the root directory.
--
Nathan Sokalski
nj********@hotmail.com
http://www.nathansokalski.com/

"Cor Ligthert [MVP]" <no************@planet.nlwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
Nathan,

Try never to use fixed paths in webdeveloping; use the virtual path's,
src="images/Logo.gif"

Cor

"Nathan Sokalski" <nj********@hotmail.comschreef in bericht
news:Op**************@TK2MSFTNGP06.phx.gbl...
>>I am creating an ASP.NET application in a subdirectory of what IIS uses as
the root directory (C:\Inetpub\wwwroot\). I am using the version of IIS
that comes with Windows XP Pro SP2. Some of my code in my ASP.NET
application uses root-relative URLs, such as /images/background.gif.
However, because the subdirectory my application is in is not the root
directory of IIS, I cannot test my application on my machine. Is there any
way to avoid this problem?
--
Nathan Sokalski
nj********@hotmail.com
http://www.nathansokalski.com/


Dec 23 '06 #3

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

Similar topics

2
by: Ily | last post by:
Can Visaal Studio 2005 and Visual Studio 2005 co-exist?
19
by: lonelyplanet | last post by:
Hi, I'm studying for 70-306 using the book "MCAD/MCSD Visual Basic .NET Windows Applications" published by McGraw Hill (ISBN: 0-07-212583-7). I found the book has no programming exercise...
7
by: vamichael | last post by:
When I try to run the Website Administration Tool from my published application using http://localhost/myapp/webadmin.axd I am getting a "resource not found" error message. I can use the...
2
by: Jeff | last post by:
No response in the vstudio.general group so... I currently have Visual Studio 6 Enterprise and Visual Studio .NET 2003 Enterprise Architect installed. I am about to install Visual Studio 2005...
1
by: Loane Sharp | last post by:
Hi there I have a web application created in Visual Studio 2005. The web application is installed in a subdirectory of the wwwroot directory, which is mapped in turn to a virtual directory (IIS,...
0
by: Derek | last post by:
I am writing a small application in visual studio 2005 using VB to extract data from Active Directory. When I try to build the project I get the following. Unable to write to output file...
3
by: Shawn B. | last post by:
Can C# Express be installed side-by-side with VS 2005 Pro (Developer Edition)? Or do they require installation on seperate machines? I'm trying to install XNA but it requires C# Express which I...
5
by: Nathan Sokalski | last post by:
I am creating an ASP.NET application in a subdirectory of what IIS uses as the root directory (C:\Inetpub\wwwroot\). I am using the version of IIS that comes with Windows XP Pro SP2. Some of my...
5
by: dougdoc | last post by:
We are exploring doing some development with MS Visual Studio 2005 to access our DB2 UDB for Windows databases. Are there any other options to accessing DB2 with Visual Studio that may be more...
4
by: =?Utf-8?B?Znc=?= | last post by:
Is there a way to config a asp.net app subdir's web.config so that the sub dir becomes a new IIS application in Visual Studio 2005? I need this because the authentication mode for the subdir is...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...
1
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...
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,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
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: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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...

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.