[SOLVED] Could not attach paperwork error, System.InvalidCastException
If you receive this error:
Check your default application for opening PDF files in Windows settings.
It may have changed to "File Explorer" or a different application. Setting the default PDF application back to Adobe Reader or similar should fix this issue.