On the device I get the following error message (translated):
File or assembly name Regex version = 1.0.2808.28557, etc... or one of the dependencies cannot be found.
Followed by a separate message headed with .Net Initialization error: "loading of required parts has failed. " and a story about .NetCompact Framework. As recommended I reinstalled .Net CF 2.0 , but no improvement.
I feel ashamed and I should work more carefully. Of course the library was in the same directory as the program, but when you copy the program to another directory in stead of the link to it then the library is missing. Sorry.