Access denied in creating/opening a file on network for output

  • Thread starter Thread starter Wanda
  • Start date Start date
W

Wanda

Hello,

I tried to open a new file on network for output: (aspnet)

FileOpen(intFile, "\\MachineName\path\subfolder\filename",
OpenMode.Output)

However, I received the following error message:
System.UnauthorizedAccessException: Access to the path
"\\MachineName\path\subfolder\filename" is denied.

Here are my settings:
1. IIS: under directory security, I check off anonymous access, where
UserName=ISUR_MachineName
2. For "\\MachineName\path" security, I add the account
"MachineName\IUSR_MachineName" to full control.

What have I done wrong? Or am I missing anything?

PLEASE HELP!!!! Any advice would be greatly appreciated.
Wanda
 
Hello Wanda,


You should try granting access to that folder to the ASPNET user.

Greetings!
 
Back
Top