|
 |
asp_components thread: Windows 2000 Virtual Directory
Message #1 by rg1@h... on Thu, 7 Jun 2001 21:40:41
|
|
Hi.
We use SAFileUp for file uploads and downloads.
We just installed Windows 2000 and my virtual directories are not working
correctly. I created a virtual directory called SAFiles under the Default
FTP site, pointing to D:\SAUploads.
However, when I check what my upl.path is (set to the virtual directory)
it's showing me that it's looking for SAUploads in
C:\INETPUB\WWWROOT\SAFiles where SAFiles is the virtual directory name.
Any suggestions would be greatly appreciated!
Rita
Message #2 by "Gerhard Wentink" <data@w...> on Fri, 8 Jun 2001 06:29:45 -0700
|
|
Rita,
What is the reason that you made the upload path to the FTP site? AFAIK IIS
has no knowledge of the virtual directory structure of the FTP site.
Try using a (virtual) path that resides under the webserver.
Regards
Gerhard Wentink
----- Original Message -----
From: <rg1@h...>
To: "ASP components" <asp_components@p...>
Sent: Thursday, June 07, 2001 1:48 PM
Subject: [asp_components] Windows 2000 Virtual Directory
> Hi.
>
> We use SAFileUp for file uploads and downloads.
>
> We just installed Windows 2000 and my virtual directories are not working
> correctly. I created a virtual directory called SAFiles under the Default
> FTP site, pointing to D:\SAUploads.
>
> However, when I check what my upl.path is (set to the virtual directory)
> it's showing me that it's looking for SAUploads in
> C:\INETPUB\WWWROOT\SAFiles where SAFiles is the virtual directory name.
>
> Any suggestions would be greatly appreciated!
>
> Rita
>
Message #3 by Rita Greenberg <rg1@h...> on Fri, 8 Jun 2001 07:24:44 -0700
|
|
Hi Gerhard.
Yes, before getting your response I realised that I needed the virtual
path
to reside under the webserver, as you suggested.
I deleted the virtual path that I had created in the FTP site and then
created one under the webserver. Not the default one but one that I
have for
my project that's in the default one. i.e. C:\INETPUB\WWWROOT\WEBPPO.
I'm
still having the same problem thouigh. I tried rebooting but that
didn't
help either. Very strange...
Rita
-----Original Message-----
From: Gerhard Wentink [mailto:data@w...]
Sent: Friday, June 08, 2001 6:30 AM
To: ASP components
Subject: [asp_components] Re: Windows 2000 Virtual Directory
Rita,
What is the reason that you made the upload path to the FTP site? AFAIK
IIS
has no knowledge of the virtual directory structure of the FTP site.
Try using a (virtual) path that resides under the webserver.
Regards
Gerhard Wentink
----- Original Message -----
From: <rg1@h...>
To: "ASP components" <asp_components@p...>
Sent: Thursday, June 07, 2001 1:48 PM
Subject: [asp_components] Windows 2000 Virtual Directory
> Hi.
>
> We use SAFileUp for file uploads and downloads.
>
> We just installed Windows 2000 and my virtual directories are not
working
> correctly. I created a virtual directory called SAFiles under the
Default
> FTP site, pointing to D:\SAUploads.
>
> However, when I check what my upl.path is (set to the virtual
directory)
> it's showing me that it's looking for SAUploads in
> C:\INETPUB\WWWROOT\SAFiles where SAFiles is the virtual directory
name.
>
> Any suggestions would be greatly appreciated!
>
> Rita
>
Message #4 by "Gerhard Wentink" <g.wentink@h...> on Fri, 8 Jun 2001 17:44:17 -0700
|
|
Rita,
Can you post the code ?
Regards
Gerhard
----- Original Message -----
From: "Rita Greenberg" <rg1@h...>
To: "ASP components" <asp_components@p...>
Sent: Friday, June 08, 2001 7:24 AM
Subject: [asp_components] Re: Windows 2000 Virtual Directory
Hi Gerhard.
Yes, before getting your response I realised that I needed the virtual path
to reside under the webserver, as you suggested.
I deleted the virtual path that I had created in the FTP site and then
created one under the webserver. Not the default one but one that I have for
my project that's in the default one. i.e. C:\INETPUB\WWWROOT\WEBPPO. I'm
still having the same problem thouigh. I tried rebooting but that didn't
help either. Very strange...
Rita
-----Original Message-----
From: Gerhard Wentink [mailto:data@w...]
Sent: Friday, June 08, 2001 6:30 AM
To: ASP components
Subject: [asp_components] Re: Windows 2000 Virtual Directory
Rita,
What is the reason that you made the upload path to the FTP site? AFAIK IIS
has no knowledge of the virtual directory structure of the FTP site.
Try using a (virtual) path that resides under the webserver.
Regards
Gerhard Wentink
----- Original Message -----
From: <rg1@h...>
To: "ASP components" <asp_components@p...>
Sent: Thursday, June 07, 2001 1:48 PM
Subject: [asp_components] Windows 2000 Virtual Directory
> Hi.
>
> We use SAFileUp for file uploads and downloads.
>
> We just installed Windows 2000 and my virtual directories are not working
> correctly. I created a virtual directory called SAFiles under the Default
> FTP site, pointing to D:\SAUploads.
>
> However, when I check what my upl.path is (set to the virtual directory)
> it's showing me that it's looking for SAUploads in
> C:\INETPUB\WWWROOT\SAFiles where SAFiles is the virtual directory name.
>
> Any suggestions would be greatly appreciated!
>
> Rita
>
Message #5 by Rita Greenberg <rg1@h...> on Fri, 8 Jun 2001 11:48:34 -0700
|
|
Hi Gerhard.
It's pretty basic stuff. Here it is:
<% @ LANGUAGE="VBSCRIPT" %>
<%
Option Explicit
Dim virtualPath 'Server
Virtual directory where uploaded file will reside
Dim oUpload
'SAFileUp object
Dim strFileName
virtualPath="/SATest2"
Set oUpload = Server.CreateObject("SoftArtisans.FileUp")
oUpload.MaxBytes = 700000000
oUpload.Path = Server.Mappath (virtualPath)
Rita
****************************************************************************
******
> Hi.
>
> We use SAFileUp for file uploads and downloads.
>
> We just installed Windows 2000 and my virtual directories are not working
> correctly. I created a virtual directory called SAFiles under the Default
> FTP site, pointing to D:\SAUploads.
>
> However, when I check what my upl.path is (set to the virtual directory)
> it's showing me that it's looking for SAUploads in
> C:\INETPUB\WWWROOT\SAFiles where SAFiles is the virtual directory name.
>
> Any suggestions would be greatly appreciated!
>
> Rita
>
****************************************************************************
*******
Message #6 by "Gerhard Wentink" <data@w...> on Sat, 9 Jun 2001 08:02:18 -0700
|
|
Rita,
You're right, the code seems oke
Did you do some tests to see what's going wrong?
For example:
see if Response.Write Server.Mappath("/SAtest2") returns the right path
Also you could try to use the physical path instead.
You could als try the SaveInVirtual method of the SAFileUp component
Regards
Gerhard
----- Original Message -----
From: "Rita Greenberg" <rg1@h...>
To: "ASP components" <asp_components@p...>
Sent: Friday, June 08, 2001 11:48 AM
Subject: [asp_components] Re: Windows 2000 Virtual Directory
> Hi Gerhard.
>
> It's pretty basic stuff. Here it is:
> <% @ LANGUAGE="VBSCRIPT" %>
> <%
> Option Explicit
>
> Dim virtualPath 'Server
> Virtual directory where uploaded file will reside
> Dim oUpload
> 'SAFileUp object
> Dim strFileName
>
> virtualPath="/SATest2"
>
> Set oUpload = Server.CreateObject("SoftArtisans.FileUp")
> oUpload.MaxBytes = 700000000
> oUpload.Path = Server.Mappath (virtualPath)
> Rita
>
>
Message #7 by Rita Greenberg <rg1@h...> on Mon, 11 Jun 2001 08:11:28 -0700
|
|
Hi Gerhard.
I haven't had a chance to try to resolve it - I have a presentation
this
afternoon! I will certainly try your suggestions tomorrow though.
Is "SaveInVirtual" a new method? I don't remember seeing it before?
Currently for the presentation, I'm using the physical path. Thinking
about
it, since it's an ASP page, why do I need the virtual path? The user
can't
see my ASP code!
Rita
-----Original Message-----
From: Gerhard Wentink [mailto:data@w...]
Sent: Saturday, June 09, 2001 8:02 AM
To: ASP components
Subject: [asp_components] Re: Windows 2000 Virtual Directory
Rita,
You're right, the code seems oke
Did you do some tests to see what's going wrong?
For example:
see if Response.Write Server.Mappath("/SAtest2") returns the right
path
Also you could try to use the physical path instead.
You could als try the SaveInVirtual method of the SAFileUp component
Regards
Gerhard
----- Original Message -----
From: "Rita Greenberg" <rg1@h...>
To: "ASP components" <asp_components@p...>
Sent: Friday, June 08, 2001 11:48 AM
Subject: [asp_components] Re: Windows 2000 Virtual Directory
> Hi Gerhard.
>
> It's pretty basic stuff. Here it is:
> <% @ LANGUAGE=3D"VBSCRIPT" %>
> <%
> Option Explicit
>
> Dim virtualPath 'Server
> Virtual directory where uploaded file will reside
> Dim oUpload
> 'SAFileUp object
> Dim strFileName
>
> virtualPath=3D"/SATest2"
>
> Set oUpload =3D Server.CreateObject("SoftArtisans.FileUp")
> oUpload.MaxBytes =3D 700000000
> oUpload.Path =3D Server.Mappath (virtualPath)
> Rita
>
Message #8 by "Gerhard Wentink" <data@w...> on Mon, 11 Jun 2001 19:18:35 -0700
|
|
Hi Rita
I don't know if SaveInVirtual is new. I use version 3.1. I just dug it up
from the help file. Good luck with your presentation.
Gerhard
----- Original Message -----
From: "Rita Greenberg" <rg1@h...>
To: "ASP components" <asp_components@p...>
Sent: Monday, June 11, 2001 8:11 AM
Subject: [asp_components] Re: Windows 2000 Virtual Directory
Hi Gerhard.
I haven't had a chance to try to resolve it - I have a presentation this
afternoon! I will certainly try your suggestions tomorrow though.
Is "SaveInVirtual" a new method? I don't remember seeing it before?
Currently for the presentation, I'm using the physical path. Thinking about
it, since it's an ASP page, why do I need the virtual path? The user can't
see my ASP code!
Rita
-----Original Message-----
From: Gerhard Wentink [mailto:data@w...]
Sent: Saturday, June 09, 2001 8:02 AM
To: ASP components
Subject: [asp_components] Re: Windows 2000 Virtual Directory
Rita,
You're right, the code seems oke
Did you do some tests to see what's going wrong?
For example:
see if Response.Write Server.Mappath("/SAtest2") returns the right path
Also you could try to use the physical path instead.
You could als try the SaveInVirtual method of the SAFileUp component
Regards
Gerhard
----- Original Message -----
From: "Rita Greenberg" <rg1@h...>
To: "ASP components" <asp_components@p...>
Sent: Friday, June 08, 2001 11:48 AM
Subject: [asp_components] Re: Windows 2000 Virtual Directory
> Hi Gerhard.
>
> It's pretty basic stuff. Here it is:
> <% @ LANGUAGE="VBSCRIPT" %>
> <%
> Option Explicit
>
> Dim virtualPath 'Server
> Virtual directory where uploaded file will reside
> Dim oUpload
> 'SAFileUp object
> Dim strFileName
>
> virtualPath="/SATest2"
>
> Set oUpload = Server.CreateObject("SoftArtisans.FileUp")
> oUpload.MaxBytes = 700000000
> oUpload.Path = Server.Mappath (virtualPath)
> Rita
>
Message #9 by "Gerhard Wentink" <data@w...> on Tue, 12 Jun 2001 06:35:57 -0700
|
|
Wait I must have slept.
Do you realise that Server.Mappath ("/SATest2") points to a directory in the
root of your webserver? So if your webservers homedirectory is
D:\inetpub\wwwroot the Server.Mappath function will return
D:\inetpub\wwwroot \SATest2 .
Server.Mapptah ("SATest2") will point to the directory right under the one
you are "working" in.
If the directory doesn't reside under IIS you can't use Server.Mappath and
you must use a physical path. As I read in your first mail (after sleeping
right) you want to use the directory D:\SAUploads. Unless D:\ is your
webservers homedirectory, you can't point to it with
(Server.Mappayh("/SAUploads").
Regards,
Gerhard
> ----- Original Message -----
> From: "Rita Greenberg" <rg1@h...>
> To: "ASP components" <asp_components@p...>
> Sent: Monday, June 11, 2001 8:11 AM
> Subject: [asp_components] Re: Windows 2000 Virtual Directory
>
>
> Hi Gerhard.
>
> I haven't had a chance to try to resolve it - I have a presentation this
> afternoon! I will certainly try your suggestions tomorrow though.
>
> Is "SaveInVirtual" a new method? I don't remember seeing it before?
>
> Currently for the presentation, I'm using the physical path. Thinking
about
> it, since it's an ASP page, why do I need the virtual path? The user can't
> see my ASP code!
>
> Rita
>
Message #10 by Rita Greenberg <rg1@h...> on Tue, 12 Jun 2001 08:49:12 -0700
|
|
Hi Gerhard.
My webserver directories are located on C:\INETPUB\WWWROOT\WEBPPO.
My virtual directory was pointing to D:\SAUploads.
Interesting comment regarding Server.Mappath not working if the
directory
doesn't reside under IIS. Before installing all the latest software, my
virtual directory was under IIS but now it's not. In fact I need to
change
it to point to another server!
Armed with this new knowledge, I'll play around. I'm comfortable with
using
the physical path (which is held in a variable) on the ASP page.
Thanks for your help.
Rita
-----Original Message-----
From: Gerhard Wentink [mailto:data@w...]
Sent: Tuesday, June 12, 2001 6:36 AM
To: ASP components
Subject: [asp_components] Re: Windows 2000 Virtual Directory
Wait I must have slept.
Do you realise that Server.Mappath ("/SATest2") points to a directory
in the
root of your webserver? So if your webservers homedirectory is
D:\inetpub\wwwroot the Server.Mappath function will return
D:\inetpub\wwwroot \SATest2 .
Server.Mapptah ("SATest2") will point to the directory right under the
one
you are "working" in.
If the directory doesn't reside under IIS you can't use Server.Mappath
and
you must use a physical path. As I read in your first mail (after
sleeping
right) you want to use the directory D:\SAUploads. Unless D:\ is your
webservers homedirectory, you can't point to it with
(Server.Mappayh("/SAUploads").
Regards,
Gerhard
> ----- Original Message -----
> From: "Rita Greenberg" <rg1@h...>
> To: "ASP components" <asp_components@p...>
> Sent: Monday, June 11, 2001 8:11 AM
> Subject: [asp_components] Re: Windows 2000 Virtual Directory
>
>
> Hi Gerhard.
>
> I haven't had a chance to try to resolve it - I have a presentation
this
> afternoon! I will certainly try your suggestions tomorrow though.
>
> Is "SaveInVirtual" a new method? I don't remember seeing it before?
>
> Currently for the presentation, I'm using the physical path. Thinking
about
> it, since it's an ASP page, why do I need the virtual path? The user
can't
> see my ASP code!
>
> Rita
|
|
 |