thisWeb = thisSite.AllWebs;
This code requires Administrator previliges. Run it under Elevated Previleges: http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spsecurity.runwithelevatedprivileges.aspx