Microsoft Knowledge Base Article
This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved.
Terms
of Use |
Trademarks
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"
You 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
This 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.
To resolve this issue, make sure that the following conditions are true for the user account under which the application runs:
- The user is a server farm administrator.
- The user has Read and Write permissions on the content database.
- The user is a site collection administrator.
- The user has permissions to access the Windows SharePoint Services site or the SharePoint Server 2007 site through which the code iterates.
For 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:
Alternatively, download the SharePoint Server 2007 SDK. To do this, visit the following Microsoft Web site:
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:
Alternatively, download the Windows SharePoint Services 3.0 SDK. To do this, visit the following Microsoft Web site:
APPLIES TO
- Microsoft Office SharePoint Server 2007
- Microsoft Windows SharePoint Services 3.0
| kbtshoot kbprogramming kbprb kbexpertiseinter KB935751 |
Community Feedback System
Very often, it takes hours to solve a problem. Very often, you've looked high
and low, and have tried a lot of solutions. When you finally found it, chances
are, it was because someone else helped you. Here's your chance to give back.
Use our community feedback tool to let others know what worked for you and what
didn't.
Please also understand that the community feedback system is not warranted to be
correct, it's simply a system that we've built to let people try and help each
other. If something in a feedback response doesn't make sense to you, or you're
not comfortable making changes that the feedback talks about (like registry
edits), please consult a professional.
Thank you for using kbAlertz.com Feedback System.
-- Scott Cate
Be the first to leave feedback, to help others about this knowledge base
article.
(Optional) Name
(Optional)
Public URL Or Email
Comments
No
HTML -- Text Only Please