I am trying to copy a text to a clipboard using below command:
Clipboard.SetText(textToCopy);
but an exception is thrown:
Anyway, text is correctly copied to clipboard. I can catch the exception so the user does not see it but I would like to know what is happening.