The things that you have to do to protect your application previous: Funny comments next: NH Prof for Hibernate – Now in Closed Beta The following is NHProf’s Main method: Each of the currently existing conditions (and I am pretty sure that they will grow) is there because of bug reports from the field. It gets… interesting, sometimes, the things that user do to my poor app. Comments 05/17/2009 01:18 PM by Mr_Commercial_vs_Corporate Yeah it's a much different world than corporate clients that's for sure. The precautionary steps required are ten-fold in order to prevent an avalanche of false positive bug reports and associated problems. I say, bind 'em up and lock 'em down. If your product still runs then your user will have a pleasant experience and be grateful to you, otherwise barf early and often otherwise the user will falsely cuss you like they do Microsoft. 05/17/2009 01:19 PM by Krzysztof Kozmic I don't think you should do that - simply close the app without any notification for the user. You should output a message telling a user why you are closing. 05/17/2009 01:49 PM by Ayende Rahien Krzysztof, The Assert is also responsible for alerting the user 05/17/2009 05:15 PM by Patrick Smacchia Ayende, not surprisingly, at the early stage of NDepend I wrote a similar post. But we try to go further by making sure all assemblies are here with all correct version in all correct location: codebetter.com/.../...tallation-in-production.aspx 05/17/2009 05:45 PM by VirtualStaticVoid Yip, I've done similar assertions, as well as doing permission assertions. e.g. Try running NHProf under Intranet/Internet Zone policies. 05/17/2009 06:01 PM by Set Hmm wouldn't reflector + deblector + reflexil make it trivial to bypass this? or i'm missing something? 05/17/2009 06:06 PM by Ayende Rahien Set, Please read it. Then guess about why I need it 05/17/2009 06:32 PM by Set Ahh nevermind i thought it was some kind of assert to "protect" your files in addition to your licensing scheme. I should go to sleep :x 05/19/2009 09:06 AM by Peter Morris I wouldn't bother at all to be honest. If someone is going to delete files I would let the app crash. Maybe the unhandled exception dialog could suggest re-installing the file and if the problem persists they should send the bug report on to you. 05/19/2009 10:04 AM by Ayende Rahien Peter, You do realize how many support calls a good error can save you? 05/19/2009 12:58 PM by Peter Morris Oren - yes I do realise how many support calls a good error can save :-) mrpmorris.blogspot.com/.../...ance-of-clarity.html 05/19/2009 01:22 PM by Ayende Rahien So you realize why it is important to try to reduce them :-) Comments have been closed on this topic.