I have a subfolder under wwwroot set up as a virtual directory with its own
application name in IIS. I pulled it down from Visual Source Safe and, on the
machine where it's normally hosted, it works fine. On my machine, though, all
the application relative paths are resolving relative to wwwroot. Can anyone
tell me what I might be doing wrong?
Thanks! 9 1729
Show your code..specifically the path mentioned. Do you have it configured
as an application/vdir on your machine too?
What the physical location on your machine?
Jeff
"Garann Means" <Garann Me***@discussions.microsoft.com> wrote in message
news:16**********************************@microsof t.com... I have a subfolder under wwwroot set up as a virtual directory with its own application name in IIS. I pulled it down from Visual Source Safe and, on the machine where it's normally hosted, it works fine. On my machine, though, all the application relative paths are resolving relative to wwwroot. Can anyone tell me what I might be doing wrong?
Thanks!
Here's a snippet of the HTML. It's all simple stuff, like CSS and images:
<td align="right" valign="bottom" width="*" class="fineText">
<div style="text-align:left;width:220px;font-size:7pt;">
<a href="http://feeds.feedburner.com/MMetricsInc"><img
src="/img/icons/feed-icon-10x10.gif" width="10" height="10" alt="XML Data
Feed" />
M:Metrics RSS Feed </a><a
href="http://feeds.feedburner.com/MMetrics/mblog"><img
src="/img/icons/feed-icon-10x10.gif" width="10" height="10" alt="XML Data
Feed"
style="margin-left:20px;" /> M:Blog RSS Feed </a>
<br />
<br />
<a href="/about/contact.aspx">Sign up</a> for M:Metrics email alerts
<br />
<br />
</div>
</td>
As I said above, it appears to be set up correctly as a virtual directory
and an application. Any other thoughts?
"Jeff Dillon" wrote: Show your code..specifically the path mentioned. Do you have it configured as an application/vdir on your machine too?
What the physical location on your machine?
Jeff "Garann Means" <Garann Me***@discussions.microsoft.com> wrote in message news:16**********************************@microsof t.com...I have a subfolder under wwwroot set up as a virtual directory with its own application name in IIS. I pulled it down from Visual Source Safe and, on the machine where it's normally hosted, it works fine. On my machine, though, all the application relative paths are resolving relative to wwwroot. Can anyone tell me what I might be doing wrong?
Thanks!
The way you have it, "/img/icons/fee" will be right off the root of
feeds.feedburner.com it appears, unliess you have MMetrics set up as a
virtual directory on your machine.
And that isn't a relative path..it's absolute. ../img etc would be relative
Jeff
"Garann Means" <Ga*********@discussions.microsoft.com> wrote in message
news:C9**********************************@microsof t.com... Here's a snippet of the HTML. It's all simple stuff, like CSS and images:
<td align="right" valign="bottom" width="*" class="fineText"> <div style="text-align:left;width:220px;font-size:7pt;"> <a href="http://feeds.feedburner.com/MMetricsInc"><img src="/img/icons/feed-icon-10x10.gif" width="10" height="10" alt="XML Data Feed" /> M:Metrics RSS Feed </a><a href="http://feeds.feedburner.com/MMetrics/mblog"><img src="/img/icons/feed-icon-10x10.gif" width="10" height="10" alt="XML Data Feed" style="margin-left:20px;" /> M:Blog RSS Feed </a> <br /> <br /> <a href="/about/contact.aspx">Sign up</a> for M:Metrics email alerts <br /> <br /> </div> </td>
As I said above, it appears to be set up correctly as a virtual directory and an application. Any other thoughts?
"Jeff Dillon" wrote:
Show your code..specifically the path mentioned. Do you have it configured as an application/vdir on your machine too?
What the physical location on your machine?
Jeff "Garann Means" <Garann Me***@discussions.microsoft.com> wrote in message news:16**********************************@microsof t.com... >I have a subfolder under wwwroot set up as a virtual directory with its >own > application name in IIS. I pulled it down from Visual Source Safe and, > on > the > machine where it's normally hosted, it works fine. On my machine, > though, > all > the application relative paths are resolving relative to wwwroot. Can > anyone > tell me what I might be doing wrong? > > Thanks!
Thanks, but the problem is that the folder IS set up as a virtual directory
and an application (as stated above, twice) and the paths are not resolving
relative to it. I am trying to figure out why.
"Jeff Dillon" wrote: The way you have it, "/img/icons/fee" will be right off the root of feeds.feedburner.com it appears, unliess you have MMetrics set up as a virtual directory on your machine.
And that isn't a relative path..it's absolute. ../img etc would be relative
Jeff
"Garann Means" <Ga*********@discussions.microsoft.com> wrote in message news:C9**********************************@microsof t.com... Here's a snippet of the HTML. It's all simple stuff, like CSS and images:
<td align="right" valign="bottom" width="*" class="fineText"> <div style="text-align:left;width:220px;font-size:7pt;"> <a href="http://feeds.feedburner.com/MMetricsInc"><img src="/img/icons/feed-icon-10x10.gif" width="10" height="10" alt="XML Data Feed" /> M:Metrics RSS Feed </a><a href="http://feeds.feedburner.com/MMetrics/mblog"><img src="/img/icons/feed-icon-10x10.gif" width="10" height="10" alt="XML Data Feed" style="margin-left:20px;" /> M:Blog RSS Feed </a> <br /> <br /> <a href="/about/contact.aspx">Sign up</a> for M:Metrics email alerts <br /> <br /> </div> </td>
As I said above, it appears to be set up correctly as a virtual directory and an application. Any other thoughts?
"Jeff Dillon" wrote:
Show your code..specifically the path mentioned. Do you have it configured as an application/vdir on your machine too?
What the physical location on your machine?
Jeff "Garann Means" <Garann Me***@discussions.microsoft.com> wrote in message news:16**********************************@microsof t.com... >I have a subfolder under wwwroot set up as a virtual directory with its >own > application name in IIS. I pulled it down from Visual Source Safe and, > on > the > machine where it's normally hosted, it works fine. On my machine, > though, > all > the application relative paths are resolving relative to wwwroot. Can > anyone > tell me what I might be doing wrong? > > Thanks!
You have two different vdirs mentioned then: MMetricsInc and MMetrics
Which one is it? Which is the virtual name? If it's MMetrics..then /img for
MMetricsInc will INDEED be against the server webroot.
Jeff
"Garann Means" <Ga*********@discussions.microsoft.com> wrote in message
news:44**********************************@microsof t.com... Thanks, but the problem is that the folder IS set up as a virtual directory and an application (as stated above, twice) and the paths are not resolving relative to it. I am trying to figure out why.
"Jeff Dillon" wrote:
The way you have it, "/img/icons/fee" will be right off the root of feeds.feedburner.com it appears, unliess you have MMetrics set up as a virtual directory on your machine.
And that isn't a relative path..it's absolute. ../img etc would be relative
Jeff
"Garann Means" <Ga*********@discussions.microsoft.com> wrote in message news:C9**********************************@microsof t.com... > Here's a snippet of the HTML. It's all simple stuff, like CSS and > images: > > <td align="right" valign="bottom" width="*" class="fineText"> > <div style="text-align:left;width:220px;font-size:7pt;"> > <a href="http://feeds.feedburner.com/MMetricsInc"><img > src="/img/icons/feed-icon-10x10.gif" width="10" height="10" alt="XML > Data > Feed" /> > M:Metrics RSS Feed </a><a > href="http://feeds.feedburner.com/MMetrics/mblog"><img > src="/img/icons/feed-icon-10x10.gif" width="10" height="10" alt="XML > Data > Feed" > style="margin-left:20px;" /> M:Blog RSS Feed </a> > <br /> > <br /> > <a href="/about/contact.aspx">Sign up</a> for M:Metrics email alerts > <br /> > <br /> > </div> > </td> > > As I said above, it appears to be set up correctly as a virtual > directory > and an application. Any other thoughts? > > > "Jeff Dillon" wrote: > >> Show your code..specifically the path mentioned. Do you have it >> configured >> as an application/vdir on your machine too? >> >> What the physical location on your machine? >> >> Jeff >> "Garann Means" <Garann Me***@discussions.microsoft.com> wrote in >> message >> news:16**********************************@microsof t.com... >> >I have a subfolder under wwwroot set up as a virtual directory with >> >its >> >own >> > application name in IIS. I pulled it down from Visual Source Safe >> > and, >> > on >> > the >> > machine where it's normally hosted, it works fine. On my machine, >> > though, >> > all >> > the application relative paths are resolving relative to wwwroot. >> > Can >> > anyone >> > tell me what I might be doing wrong? >> > >> > Thanks! >> >> >>
It's neither of those. Those are two directories on a different machine. This
file and the img directory and all the other resources being referred to with
relative paths are within one virtual directory directly under wwwroot.
"Jeff Dillon" wrote: You have two different vdirs mentioned then: MMetricsInc and MMetrics
Which one is it? Which is the virtual name? If it's MMetrics..then /img for MMetricsInc will INDEED be against the server webroot.
Jeff
Ok, got it. So what is the URL of the page containing these links...and what
is the name of the vdir.
Jeff
"Garann Means" <Ga*********@discussions.microsoft.com> wrote in message
news:7C**********************************@microsof t.com... It's neither of those. Those are two directories on a different machine. This file and the img directory and all the other resources being referred to with relative paths are within one virtual directory directly under wwwroot. "Jeff Dillon" wrote:
You have two different vdirs mentioned then: MMetricsInc and MMetrics
Which one is it? Which is the virtual name? If it's MMetrics..then /img for MMetricsInc will INDEED be against the server webroot.
Jeff
The page isn't public. But the URL is like this: http://localhost/myApp with
"myApp" being the name of the virtual directory. The file's physical path
would be c:\inetpub\wwwroot\myApp.
"Jeff Dillon" wrote: Ok, got it. So what is the URL of the page containing these links...and what is the name of the vdir.
Jeff
"Garann Means" <Ga*********@discussions.microsoft.com> wrote in message news:7C**********************************@microsof t.com... It's neither of those. Those are two directories on a different machine. This file and the img directory and all the other resources being referred to with relative paths are within one virtual directory directly under wwwroot. "Jeff Dillon" wrote:
You have two different vdirs mentioned then: MMetricsInc and MMetrics
Which one is it? Which is the virtual name? If it's MMetrics..then /img for MMetricsInc will INDEED be against the server webroot.
Jeff
So the links are trying to access c:\inetpub\wwwroot\inc and not
c:\inetpub\wwwroot\myApp\inc?
Weird. Sorry I can't be more help
Try putting in a Response.Write Server.MapPath() and see what you get.
Jeff
"Garann Means" <Ga*********@discussions.microsoft.com> wrote in message
news:41**********************************@microsof t.com... The page isn't public. But the URL is like this: http://localhost/myApp with "myApp" being the name of the virtual directory. The file's physical path would be c:\inetpub\wwwroot\myApp.
"Jeff Dillon" wrote:
Ok, got it. So what is the URL of the page containing these links...and what is the name of the vdir.
Jeff
"Garann Means" <Ga*********@discussions.microsoft.com> wrote in message news:7C**********************************@microsof t.com... > It's neither of those. Those are two directories on a different > machine. > This > file and the img directory and all the other resources being referred > to > with > relative paths are within one virtual directory directly under wwwroot. > > > > "Jeff Dillon" wrote: > >> You have two different vdirs mentioned then: MMetricsInc and MMetrics >> >> Which one is it? Which is the virtual name? If it's MMetrics..then >> /img >> for >> MMetricsInc will INDEED be against the server webroot. >> >> Jeff > This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Doug |
last post by:
If I were to write an include with a relative path like
include("../conf/config.php");
What is the use?
As far as I understand it, the path is relative to the first script that
is called by...
|
by: jason |
last post by:
I am getting twisted by the possibility that my virtual includes which
currently work great on non-domain remote IP will crash if I purchase a
domain and point it to one of my designated...
|
by: Jason Moore |
last post by:
I am trying to set up a web application so that I can use the root relative
paths, but if I set the site up at http://localhost VS.Net only gives me the
option to user absolute paths (relative,...
|
by: Joe |
last post by:
Hi, can someone tell me how to set up relativ paths in VS2003 C++ ? I have
some source with a tree directory structure that segments include files in
various directories:
#include...
|
by: Dave |
last post by:
Hi, since I'm developing on XP and can only have on website, how can you
refer to your root application (not web) in your paths?
I read for server controls that "the ~/ prefix will be converted...
|
by: =?Utf-8?B?TWlrZQ==?= |
last post by:
Hi. I have a virtual directory named Vehicles which serves a website. An
..aspx page in the Vehicles directory needs to display an image from a folder
existing one folder above Vehicles.
So I...
|
by: Lars Eighner |
last post by:
Aside from the deaths of a few extra electrons to spell out the whole root
relative path, is there any down side? It seems to me that theoretically it
shouldn't make any difference, and it would...
|
by: BD |
last post by:
Hi there.
Using 8.2 on Windows.
I have a situation where I have a db backup, which I want to deploy to
a group of developer workstations.
The target directory for the database files will be...
|
by: Peted |
last post by:
Hi
i have a circumstance where a user unzips a file, with a certain layer
of directories to get to a textfile.
So in any directory on the HDD they may end up with something like
...
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
by: af34tf |
last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
| |