You have mentioned that sometimes the Decrypt method is not posted from .js, which means that it sometimes does, is that right? If that is the case I guess there is some kind of timing issue between the loading of the page and its resource. I am afraid that without a sample project reproducing this complex case we could not guess from where the issue is coming.
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer
and share your thoughts.