|
-
Nov 8th, 2004, 08:44 AM
#1
Thread Starter
Fanatic Member
Redirect to file not in web page directories
Hi guys, I need to to able to direct a user to a file that is not on the same server as the web host server. I have tried something like this.
VB Code:
Response.redirect("\\Server1\dosapps\Refprice\Sunoco\TestFile.Txt")
This does not work however, it comes up and says that the page cannot be found.
I'm thinking I might have to add that path to my web config file or something like that.
Anyone know what I need to do here?
Thanks
-
Nov 9th, 2004, 05:33 AM
#2
Retired VBF Adm1nistrator
That path only makes sense for a system on the LAN. Is the other server setup to use HTTP?
Microsoft MVP : Visual Developer - Visual Basic [2004-2005]
-
Nov 9th, 2004, 07:51 AM
#3
Thread Starter
Fanatic Member
That server is on the same lan. The server is not set up to use Http. Would that make a difference?
-
Nov 9th, 2004, 09:06 AM
#4
Retired VBF Adm1nistrator
Well I'm not sure exactly what'll happen if you refer to a HTTP location. I don't have any devel tools with me at present, but on your own machine make a new asp.net web form. In Page_Load(), try Response.Redirect("c:\") or something like that.
If that works, and you see the folder, then its either a wrong path or folder permissions issue. Try browsing to the UNC directly yourself with that path.
If it doesn't work, then IExplorer is assuming a http:// prefix (I'm guessing)...
So yeah, from your machine, do:
Start > Run > *put that \\server\ path here*
Microsoft MVP : Visual Developer - Visual Basic [2004-2005]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|