iCloud Drive cannot open because CLDAPI.dll is missing

rooted

New Member
iCloud would not install due to me missing the media pack, so I did a host refresh with my preset and now iCloud Drive cannot open because CLDAPI.dll is missing. Checking Explorer, CLDAPI.dll is in my WinSxS and System32 folders.

Not sure what else uses CLDAPI.dll, or why it's been removed. Can someone look over my preset and let me know if there's something I shouldn't have removed?

Thanks.
 

Attachments

  • Auto-saved Online.xml
    17 KB
Last edited:
CLDAPI.dll is part of the Microsoft-Windows-CloudFiles-ApiLibrary package.

This shared library is used by cloud providers (OneDrive, Google, DropBox and iCloud) to simplify file sharing arrangements.
My best guess is to restore Cloud Notifications.

If that doesn't work, re-install KB5011487 (Mar 22 CU). The monthly update includes the latest CLDAPI.dll, and will re-register the missing DLL.
 
Thanks rooted.
So the issue happened only after a host refresh, not in the original removal?
It would all make sense, and will be fixed, if it wasn't for the confusing part where it's stated that the file is missing, but it's there.

Is the file in System32 after the host refresh, or not?
Unless you got the 32-bit version of iCloud, if that even exists.
Then you need SysWow64 version of the file, on that appropriate location on the host, and taken from the image.

You can get it from the full image, extract that file with 7-zip or similar.
Make sure to extract to Desktop, then move it yourself with Explorer.

Component is "Setting Sync", but the file should be enough.

Let me know how it goes.
 
Thanks rooted.
So the issue happened only after a host refresh, not in the original removal?
It would all make sense, and will be fixed, if it wasn't for the confusing part where it's stated that the file is missing, but it's there.

Is the file in System32 after the host refresh, or not?
Unless you got the 32-bit version of iCloud, if that even exists.
Then you need SysWow64 version of the file, on that appropriate location on the host, and taken from the image.

You can get it from the full image, extract that file with 7-zip or similar.
Make sure to extract to Desktop, then move it yourself with Explorer.

Component is "Setting Sync", but the file should be enough.

Let me know how it goes.
I host refreshed to a fresh ISO with no modifications and it works fine.
I tried to do a live image edit with my preset and it was still throwing me that error.
Another Host Refresh to the same ISO with the preset above and it's not functioning.

iCloud from the Windows Store has been installed during this whole processes. I've tried repairing it and reinstalling on every host refresh, but it's still a no go.
CLDAPI.dll is present only in WinSxS and System32 in every case.

I'll try Garlin's idea tomorrow and update the thread. I'll also check if Setting Sync helps.
I'm sure it's a component removal that's bugging out.
 
Tried another host refresh with Setting Sync and Cloud Notifications enabled. Unfortunately NTLite crashes when it gets to running setup.exe.

Will keep trying with some different settings.
 

Attachments

  • NTLite.log
    136.8 KB
  • Auto-saved e4b79fed.xml
    17.7 KB
Ok. Went ahead and completed a Host Refresh with the attached preset. Settings Sync enabled, CloudNotifications removed.

Installed iCloud from the Store and it doesn't even open to let me login. Cldapi.dll present in the same locations.

Not sure what I'm doing wrong here, or why I'm getting trolled so hard by Windows + iCloud.
 

Attachments

  • Auto-saved e4b79fed.xml
    18 KB
Using ProcMon, confirmed iCloudDrive.exe & iCloudPhotos.exe look for SysWOW64\cldapi.dll
 
Using ProcMon, confirmed iCloudDrive.exe & iCloudPhotos.exe look for SysWOW64\cldapi.dll
So I added CLDAPI.dll to SysWOW64 and no longer get that error.

Now I'm getting "The application was unable to start correctly (0xc000007b)"

Host refreshed to a clean new ISO and it works fine.

I'm not sure if it's something I've removed, or it's an iCloud install issue.
 
StackOverflow suggests it's a 64-bit DLL loading into a 32-bit DLL path error.

Did you copy the System32 version into SysWOW64? That's not going to cut it. Back my original suggestion, re-install the current monthly update which will plaster over the missing file.
No. I used a 64bit version of CLDAPI.dll.

I host refreshed. Installed the latest update using windows update. And then did a live edit to remove components. Same issue.
StackOverflow suggests it's an error loading a 32-bit DLL in a 64-bit path.

Did you copy the System32 version into SysWOW64? That's not going to cut it. Back my original suggestion, re-install the current monthly update which will plaster over the missing file(s).
I have no earthly Idea what I did different this time, but it seems to work now...

  • Host Refreshed
  • Installed iCloud, signed in, and made sure it synced
  • Installed the latest CU
  • Did a live edit with my removals (Exactly the same as my previous presets)
  • Drive and Sync is now working
    • Although, the actual iCloud GUI (where you login and choose what to sync) doesn't work anymore
??????
 
Fixed in build 8658.

Let me know if you still see any issues with iCloud compatibility turned on to begin with.
Or manually keep the new component 'Cloud Files API'.

Thanks.
 
That's good, making progress. What's with iCloud Settings?
Oops. Sorry forgot to answer.
iCloud Drive works on my lite install. I logged in and sync'd before doing a live edit. The tray icon is present, but when clicking on it, there's an option to open the settings to choose what to sync. This does not work.

Fixed in build 8658.

Let me know if you still see any issues with iCloud compatibility turned on to begin with.
Or manually keep the new component 'Cloud Files API'.

Thanks.
Thanks! I'm going to try a host refresh in a bit and see if it works for me.
 
Back
Top