I am using [FileSystem] from forge I have access to Shared folder on server with username and passwordpath is \\hqislm1.sodic.inv.sa\HQ_QAI trayed to set File_writeBinary parameters as content :FileContentPath : "\\hqislm1.sodic.inv.sa\HQ_QA\Filename"Domain : Itrayed all this [ hqislm1.sodic.inv.sa and \\hqislm1.sodic.inv.sa and ""]username : folderUsernamePassword : folderPasswordbut I always got an error I need help to Know my fault thank you
I found the problem
this line of code
if (LogonUser(ssUsername, ssDomain, ssPassword, 9, 0, out phToken) != 0)
need to be
if (LogonUser(ssUsername, ssDomain, ssPassword, 3, 0, out phToken) != 0)
as LogonUserA function take types of logon from 1 to 7 only
and i think the best choice is LOGON32_LOGON_NETWORK = 3
so extension could access shared folders with username and password correctly
Hi Hassan,
I'll try to check the above, and if I agree with the above change, I'll update the Forge asset. Thanks!
Hi Kilian I am so sorry I was wrongthe extension works great as it is
Ok, thanks for the feedback, that saves me some trouble :).
What error do you get?
with this config Path : \\hqislm1.sodic.inv.sa\HQ_QA\FilenameDomain : hqislm1.sodic.inv.sa username : folderUsernamePassword : folderPassword I got this error
Kindly note that HQ_QA is the shared folder
Well, "directory not found" is clear, the directory is not there. It's not a matter of privileges, you'd get a different error then. Is it an on-premise installation of the Platform, or cloud? If the latter, does the cloud server have access to the destination server?
Hello, I have also encountered the same situation as you. How did you resolve the issue of "Could not find a part of the path"
Thank you Kilian ,After fixing my configuration I got this error NowWin32Error: 0System.UnauthorizedAccessException: Access to the path 'path '\\hqislm1.sodic.inv.sa\HQ_QA \hosts.txt' is denied. at Microsoft.Win32.SafeHandles.SafeFileHandle.CreateFile(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options)
at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)
Thank you for your help