Article ID: 935751 - Last Review: July 31, 2007 - Revision: 2.0 Error message when you try to iterate through Windows SharePoint Services site objects or SharePoint Server 2007 site objects by using the SharePoint object model: "Unhandled Exception: System.IO.FileNotFoundException"SYMPTOMSYou try to iterate through Microsoft Windows SharePoint Services 3.0 site objects or Microsoft Office SharePoint Server 2007 site objects in a custom Microsoft Windows-based application or in a custom console application. You do this by using the Windows SharePoint Services object model or the SharePoint Server 2007 object model. When you do this, you receive the following error message: Unhandled Exception: System.IO.FileNotFoundException CAUSEThis issue occurs if the user account under which the application runs has insufficient permissions. If code is executed from a custom Windows-based application or from a custom console application, the code path does not use the Web context that is hosted by the Microsoft Internet Information Services (IIS) application pool. Therefore, specific user permissions are required in SharePoint Server 2007 and in the back-end data source. RESOLUTIONTo resolve this issue, make sure that the following conditions are true for the user account under which the application runs:
MORE INFORMATIONFor more information about the SharePoint Server 2007 object model, see the Microsoft Office SharePoint Server 2007 Software Development Kit (SDK). To do this, visit the following Microsoft Web site: http://msdn2.microsoft.com/en-us/library/ms550992.aspx
(http://msdn2.microsoft.com/en-us/library/ms550992.aspx)
Alternatively, download the SharePoint Server 2007 SDK. To do this, visit the following Microsoft Web site:http://www.microsoft.com/downloads/details.aspx?familyid=6d94e307-67d9-41ac-b2d6-0074d6286fa9&displaylang=en
(http://www.microsoft.com/downloads/details.aspx?familyid=6d94e307-67d9-41ac-b2d6-0074d6286fa9&displaylang=en)
For more information about the Windows SharePoint Services 3.0 object model, see the Windows SharePoint Services 3.0 SDK. To do this, visit the following Microsoft Web site:
http://msdn2.microsoft.com/en-us/library/ms441339.aspx
(http://msdn2.microsoft.com/en-us/library/ms441339.aspx)
Alternatively, download the Windows SharePoint Services 3.0 SDK. To do this, visit the following Microsoft Web site:
http://www.microsoft.com/downloads/details.aspx?familyid=05E0DD12-8394-402B-8936-A07FE8AFAFFD&displaylang=en
(http://www.microsoft.com/downloads/details.aspx?familyid=05E0DD12-8394-402B-8936-A07FE8AFAFFD&displaylang=en)
| Article Translations
|
Back to the top
