Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

"Access denied" error

Status
Not open for further replies.

LV

Programmer
Nov 1, 2000
1,184
US
WinXP, IE6.0
I'm opening a pup up from the applpication, pointing the browser to a file on a local drive, but outside of IIS:
Code:
window.open("file:\\\\\\C:\\Documents\\Test.html");
Getting an "Access Denied" javascript error. Permissins to read on this file and all of its parent directories are given to an account that IIS is running under. However, when this path is entered into the address window being on any page within the app (not a po up), the file is displayed fine.

Any ideas are greatly appreciated.
 


You are instructing the browser (running on the local user's machine) to retrieve a file on their own computer.

You get the error message because either there is no file at that location (on the local user's machine), or because of the security settings in IE (preventing cross-site scripting). This is a good thing.

Jeff
 
Thanks for the reply. The file is there for sure, it's an xls file. I enabled Web Sharing on this directory and now the pop up opens but displays an error "Your current security settings do not allow this file to be downloaded". Trying to find where this setting is. In browser's "Security" settings I can see download enabled.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top