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

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
 
A

Ariel Popovsky

Hello Wanda,


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

Greetings!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top