Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 24th, 2003, 12:17 PM
Registered User
 
Join Date: Jun 2003
Location: , WA, USA.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Sending "file:" to the browser

Hi,
I have an Intranet that is used to view folders on another server. I can generate the correct string to pass to the clients browser, but when I use the Response.Redirect (with string) I get the "Page cannot be displayed" error message. If I Response.Write the string then manually copy, paste to the Address in the browser it opens the folders fine. (this verifies the creation of the string). Has anyone dealt with this situation before? is there a setting at the browser level to check? Any ideas?
Thanks, deepblue03
 
Old June 25th, 2003, 08:12 AM
Authorized User
 
Join Date: Jun 2003
Location: , , Netherlands.
Posts: 48
Thanks: 0
Thanked 0 Times in 0 Posts
Default

plz show some code...then we can take a look at what goes wrong...:)

i've also made some sort of CMS and i know that it sometimes takes some puzzling to get all the links correct ...

greetz,

Harold
 
Old June 25th, 2003, 01:52 PM
Registered User
 
Join Date: Jun 2003
Location: , WA, USA.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Harold,

Thanks for the reply... I was reading another post here http://p2p.wrox.com/topic.asp?TOPIC_ID=791 talking about "SHOW friendly HTTP errors". I de-selected the "Show friendly HTTP errors" and tried running the code again. To my surprise it worked IE5.5 and above, (and I thought it wouldn't be friendly) I'm wondering why this would allow me to browse to the correct folder instead of just not displaying the page. I also wonder what impact not having this selected will have for the other users. Basically the resultant "string" that I would send to the browser with a Response.Redirect is:
file:\\server_name\xyz_folder\ This seems to be interperted differently depending how the SHOW Friendly HTTP Errors is set. If you have any ideas, comments please let me know... Thanks again.
 
Old June 26th, 2003, 02:05 AM
Authorized User
 
Join Date: Jun 2003
Location: , , Netherlands.
Posts: 48
Thanks: 0
Thanked 0 Times in 0 Posts
Default

i almost can't imagine that it has something to do with the "show friendly HTTP errors"-option because that only determines the amount of feedback a user gets in case of an error.

Another thing what might be worth checking are the permissions on the directories on the server. U said that when u tried to access the link from your application u got an error but when u paste the link in the browser u can reach the file. That could be cause when you're 'in' your program you are probably using the IUSR account (with the permissions belonging to this account). When you paste the link you are using your own account permissions.
Just try giving everybody full control to the directory on the other server (just as a test offcourse, not for always!)

Harold




Similar Threads
Thread Thread Starter Forum Replies Last Post
sending streaming audio files to client browser hotshot_21 ASP.NET 1.0 and 1.1 Professional 1 March 28th, 2006 12:29 AM
File Browser window Figgis Access 2 November 20th, 2005 01:49 PM
Creating a file browser hugh@kmcnetwork.com VB How-To 2 July 8th, 2004 01:50 PM
open a pdf file in browser viren_balaut Pro JSP 0 January 12th, 2004 01:27 PM
URGENT!!! Sending file to server in browser kengyiam Beginning PHP 4 September 19th, 2003 02:19 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.