Hello.
I guess I detected a problem in the Desktop.Communication.Dll:
The error in my program was NOT connect to rapi Object. In some lines before I had connected and disconnected. The DeleteDeviceFile method return "file could not be deleted".
I traced the code and found that in DeleteDeviceFile a call to CheckConnection() is made. This method checks wether a device is present (which was the case). This method should check if I'm *connected to rapi* and not if a device present.
Cause I'm not so familiar with your source I don't change anything and leave this to some professionals.
P.S.: It took me SOME hours to detect the real problem