2007-09-04

Do you get the error "values does not fall within the expected range" when trying to delete a file from the SPFileCollection in SharePoint?

Then it may be the case that the file/page you are trying to delete is set as the Default Page for the publishing site (if it is a publishing page and is located in the Pages list).

Any other causes? Please add a comment.

1 comment:

chris said...

hi,
First of all thanks for that blog you posted regarding Listitem.copyTO.
does this work for copying items from one site to a different site.
I wish to copy calendar items from one calendar to another calendar on a different site.
Everytime I use the Copyto method, I get the following exception:
"Source item cannot be found. Verify that the item exists and that you have permission to read it."

any ideas?

Regards

Chris