Window.Open Gives Access Denied Error

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have Windows Xp SP2 Installed (IE 6), and IIS 5.1. I have a simple 2 page
Asp.Net 2.0 website which has 2 pages. Aspx page has a file open control and
an open file button. selecting file from the local hdd in the file open
control and clicking open, another window opens which is supposed to open the
file.

However, the window.open gives an access denied error for local files.

No fixes have been reported yet. Can u pls let me know the solution?
 
Betoyi said:
I have Windows Xp SP2 Installed (IE 6), and IIS 5.1. I have a simple 2 page
Asp.Net 2.0 website which has 2 pages. Aspx page has a file open control
and
an open file button. selecting file from the local hdd in the file open
control and clicking open, another window opens which is supposed to open
the
file.

However, the window.open gives an access denied error for local files.

No fixes have been reported yet. Can u pls let me know the solution?

What is the complete and exact error message?
 
The code is:
window.location= 'file:///c:/procedure.txt';
or
window.open('file:///c:/procedure.txt', 'procedure.txt','');
 
I've had the same problem, both locally and on Internet sites. Here's
what helped me: Open up distributed COM configuration properties and
choose the default security tab. Under Default Access Permissions you
add 'Everyone' with Allow Access.

I hope it helps.

/B


Betoyi skrev:
 
Back
Top