[Solved] How to read shared file from Ubuntu/Samba using C#?


Use the code provided in this answer to authenticate your code for the remote directory.

Update:
Additionally, the combination of escaped backslashes and verbatim strings is a bad idea. Use one of these but not both.
Also, you are missing the backslash after the name of the shared folder.
It should be like this:

String errorLogFile = @"\\198.168.0.2\sharedfolder\" + finaldate + ".wmv";

0

solved How to read shared file from Ubuntu/Samba using C#?