Most likely, this is a security issue - you need to figure out what user ID the web page is running under, and if that User ID has sufficient rights.
Posting the error message you got would help ....
Offense, like beauty, is in the eye of the beholder, and a fantasy.
By guaranteeing freedom of expression, the First Amendment also guarntees offense.