I got this below while updating the profile through object model.
تازہ ترین معلومات کو فی الحال حاصل کریں درخواستوں پر منع کر رہے ہیں. ایک حاصل کرنے پر اپ ڈیٹس کے اجازت دینے کے لئے, 'AllowUnsafeUpdates مقرر’ SPWeb پر پراپرٹی
Add web.AllowUnsafeUpdate = true; to solve this issue.
grajits web.AllowUnsafeUpdates=true
Hello! When you have GET request and call BreakRoleInheritance, web.AllowUnsafeUpdates=true doesn’t help. I described it and a workaround in my blog http://dotnetfollower.com/wordpress/2011/03/sharepoint-updates-are-currently-disallowed-on-get-requests/
Great article, thanks for posting this post. I will be reading your blog as much as I can from now on! Appreciate it.