Page 1 of 1

Can't delete files, error "Unable to cast object as type..."

Posted: Wed May 31, 2017 10:04 pm
by dannybravia
Hi all,

I just started using Duplicate Cleaner 4.0.5 (trial version), it looks really useful and well-designed!

However, I have a bug where I'm completely unable to delete any files.

I always get an error that says: " Error in DeleteDuplicateFiles: Unable to cast object of type 'FileOperation.NewFileOperation' to type '[] '. "

As an example:
1. I select and mark files in groups 1-17 of search results
2. I click "file removal"
3. In the "file removal" pop-up menu, I click "delete files"
4. "About to delete 17 files. Are you sure?"
4a. I click "Yes"
5. Now the error pops up!

The exact same error appears when trying to move, copy, or rename the files.

I'm on Windows 10, 64-bit. I've tried running the program in administrator mode, it still doesn't work. Thanks for your help!

Re: Can't delete files, error "Unable to cast object as type

Posted: Thu Jun 01, 2017 3:08 am
by therube
Do you happen to have the "Creators Update" of Win10?


What search method, settings, are you using?

Re: Can't delete files, error "Unable to cast object as type

Posted: Thu Jun 01, 2017 10:13 am
by DigitalVolcano
Does it work if you uncheck the 'Via Windows Shell' option?

Re: Can't delete files, error "Unable to cast object as type

Posted: Sat Jun 03, 2017 7:04 pm
by dannybravia
Hi guys,

Thanks for the replies. Unchecking "via windows shell" fixed it!

FYI, not using the Windows 10 Creator's Update.