When using the Generic Folder Monitor version 1.0.1.4 seem to be having difficulties with local user accounts.
Trying to access a network share to which I can see in windows file explorer using the same credentials. In the windows explorer is can see all the files without and issue. On DM I get this...
Check of the folder failed:
System.ComponentModel.Win32Exception (0x80004005): The user name or password is incorrect
at Skyline.Protocol.ImpersonateTools.Impersonator.SetImpersonationContext(String userName, String domainName, String password, IntPtr& token, IntPtr& tokenDuplicate)
at Skyline.Protocol.ImpersonateTools.Impersonator.ImpersonateValidUser(String userName, String domainName, String password)
at QAction.NetworkShareConnection(SLProtocolExt protocol, Credential credential, Boolean utc)
at QAction.Run(SLProtocolExt protocol)
The issue is with the logon type and logon provider used in the SetImpersonationContext method in QAction 1.
The protocol uses LOGON32_LOGON_INTERACTIVE & LOGON32_PROVIDER_DEFAULT, as where this article states that LOGON32_LOGON_NEW_CREDENTIALS & LOGON32_PROVIDER_WINNT50 for network shares, which I've been using successfully via an automation scripts for some time.
I've also modified the protocol, and have got a successful connection.
Brilliant – That works a treat.
The error says the username or password is incorrect. Assuming you entered the correct credentials and configured the element as mentioned in https://catalog.dataminer.services/result/driver/4904, can you open the element log file (element_name.txt) and the file SLErrorsInProtocol.txt from the folder C: –> Skyline DataMiner –> Logging and see if you can spot the full exception there ? Usually this exception might contain the QAction ID which can later be investigated.