Results 1 to 4 of 4

Thread: Redirect to file not in web page directories

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2001
    Location
    Indiana
    Posts
    612

    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:
    1. 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
    David Wilhelm

  2. #2
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    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]

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2001
    Location
    Indiana
    Posts
    612
    That server is on the same lan. The server is not set up to use Http. Would that make a difference?
    David Wilhelm

  4. #4
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    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
  •  



Click Here to Expand Forum to Full Width