NAS Share file access

V

vital

Hi,

We have written an C# Executable(.exe) for accessing file in a windows
share. The same code when we tried to run and access a file in NAS
share it is failing giving "Access Denied" error.

System.IO.Directory.Exists(@"\\AUSDDDDDDDXCVasdsd.amer.com\SegmentFMS
\StoragePrimary")

Please let me know any workarounds.

Thanks...
 
J

Jason Keats

vital said:
Hi,

We have written an C# Executable(.exe) for accessing file in a windows
share. The same code when we tried to run and access a file in NAS
share it is failing giving "Access Denied" error.

System.IO.Directory.Exists(@"\\AUSDDDDDDDXCVasdsd.amer.com\SegmentFMS
\StoragePrimary")

Please let me know any workarounds.

Thanks...

It sounds like a permissions problem.

You generally need to right-click the folder, select Properties,
Security, Add, Advanced, Find Now, Everyone, OK, OK.

Replace "Everyone" with the user(s) you actually want to give access.

Ensure the user has, at least, Read rights. If you want to write and
delete files as well, then select Modify rights.

Of course, it may have nothing to do with the above - but, you've got to
start somewhere.

HTH
 

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

Top