Hi,
I got this error while developing a post update callout for CRM 3.0.
The reason for this could be because the Network Service account under which CRM runs may not have appropriate rights for that.
One possible solution is to right click the assembly -> Properties –> Security tab –> Add Network Service account and give it appropriate rights.
That’s it..