May 06
I had an issue with some code that was deployed into a prod environment and threw an ‘object reference not set to an instance of an object’ error where it called the SPWeb’s AssociatedVisitorGroup. It turned out that our production environment didn’t have its visitor group setup yet. To do this go to the groups page (../_layouts/groups.aspx), and on the top of of the People and Groups view click on Settings and go to Set Up Groups. There you can create a new group or associate an already existing one.