All samples interact with XProtect, you will need some sort of test installation of XProtect as a minimum. If you already have this and see issues please describe your setup.
If you work with .Net I recommend the Alarm and Event Viewer sample instead.