0

I have a Visual-Basic windows app that reads incoming SMTP email files from C:\inetpub\mailroot\Drop\ and then moves them renamed to C:\primary\

I’ve set Windows file permissions of both directories C:\inetpub\mailroot\Drop\ and C:\primary\ to “everyone” full access.

I have a 2nd VB.NET Windows app that reads each file, processes it, then deletes it using kill(filepath) which gets the error:

An unhandled exception of type 'System.UnauthorizedAccessException' occurred in Microsoft.VisualBasic.dll

Additional information: Access to the path '\\<my server>\C\Primary\[email protected] #71615 1.TXT' is denied.”

The files security permissions has “everyone” full access.

How do I set file permissions for the directories to prevent this error and be safe from hacker attack and not use “everyone” permission?

1 Answer 1

0

SOLUTION: Changed \\C to just "C:".

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .