I recently had my fair share of trouble when trying to edit the security of a web site through code. Every time I executed the code, some error came up. Most of the time, it was either "Access Denied" or "The security validation for this page is invalid". Pretty annoying stuff I thought...