The following line works fine
SPList list = web.Lists["docLibName"];
The following line raises exception "value does not fall within the expected range"
SPFolder = web.Folders["docLibName"];
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It only takes a minute to sign up.Sign up to join this community