I've fought with this forever, and I still don't have a clue what's going on.
I dont' think it's permissions related, but can't really tell. It pops up in the logs anytime I try to view the camera live or archived events - and of course, I can't.