rodneyviana / ODSyncUtil

MIT License
14 stars 5 forks source link

Will not run in Windows Server 2019 #17

Closed tpedwards closed 1 month ago

tpedwards commented 5 months ago

ODSyncUtil.exe will not run in Windows Server 2019 abending with missing dll errors.

image

First message: The code execution cannot proceed because MSVCP140.dll was not found. Reinstalling the program may fix this problem.

Second and third message: The code execution cannot proceed because VCRUNTIME140.dll was not found. Reinstalling the program may fix this problem.

Is there any plan to extend to Windows Server? It is difficult as it is to run OneDrive on Windows Server (2019 - 1809), but it is quite useful to sync a shared folder (SMB) to MS Teams / SharePoint. I was looking for a tool to monitor this operation.

tpedwards commented 5 months ago

I installed "Microsoft Visual C++ 2015 - 2022 Redistributable" (VC_redist.x64.exe) on this particular Windows Server 2019 VM and it seems to work.

tpedwards commented 5 months ago

Well, it seemed to run anyway, but I have not received any expected output.

When I run with the debug switch, I get:

PS F:\OneDrive Sync Status> ./ODSyncUtil -d 2024-04-23 16:37:49.623: Command line arguments parsed 2024-04-23 16:37:49.623: Save file name: 2024-04-23 16:37:49.623: Is debug: 1 2024-04-23 16:37:49.623: Ignore quota: 0 2024-04-23 16:37:49.623: CoInitialize succeeded 2024-04-23 16:37:49.638: SyncRootReader created 2024-04-23 16:37:49.638: EnumerateSubKeys returned 1 keys 2024-04-23 16:37:49.638: Getting status for OneDrive!S-1-5-21-4157333126-712245310-4186701322-35348!Business1|ded1b978f419487cb07a2a324bce67f5 2024-04-23 16:37:49.638: SID: S-1-5-21-4157333126-712245310-4186701322-35348 2024-04-23 16:37:49.638: User: ELANCO\SVC-SAPR2R-PROD 2024-04-23 16:37:49.638: Type: Business1 2024-04-23 16:37:49.638: Current User SID: S-1-5-21-4157333126-712245310-4186701322-35348 2024-04-23 16:37:49.654: CoCreateInstance Storage Provider for OneDrive: 0x00000000 2024-04-23 16:37:49.654: QueryInterface for IStorageProviderStatusUISourceFactory: 0x80004002 2024-04-23 16:37:49.654: getInstanceStatus returned 0x80004002 2024-04-23 16:37:49.654: SyncRootReader deleted 2024-04-23 16:37:49.654: serializeStateVector returned 2 characters [] PS F:\OneDrive Sync Status>

rodneyviana commented 5 months ago

Hi tpedwards,

This application uses a component that was introduced in Windows 11. Try this: Windows 10 Additional Configuration (Don't come here if you are using it on Windows 11)

If you have success, please let me know and I update the documentation to include server 2019.

If it does not work, you need to use the previous project for Windows 10, which some people say does not work for Windows 2019. ODSyncService

tpedwards commented 5 months ago

ODSyncService worked on Windows Server 2019. I will try again if my VM gets updated to Windows 2023.

Thanks, Tom