EncryptOnSend it doesn't work

When I write the sample code on the help document about EncryptOnSend it doesn’t work.Any idea, any help ???

Regards

Baris