Cannot directly modify the collection of Web Parts. Instead, use the WebPartManager.AddWebPart() or WebPartManager.DeleteWebPart() ...