Home > Development, SharePoint > File Not Found SharePoint Error

File Not Found SharePoint Error

If in SharePoint 2007 (WSS or MOSS) you get a file not found error on a page, the chances are you are missing a custom or 3rd Party UserControl.

image

A easy way to determine what control is missing is to:

1. Enable debugging – see my previous post (link);

image

2. View the source of the error page. In Internet Explorer, right click on the error page and select view source. In the source you will find the inner exception, which will give the path to the missing ascx UserControl file;

<!-- [FileNotFoundException]: The file /_controltemplates/Centrix/HRQuickFileSearch.ascx does not exist.   at Microsoft.SharePoint.ApplicationRuntime.SPRequestModuleData.GetWebPartPageData(HttpContext context, String path, Boolean throwIfFileNotFound)   at Microsoft.SharePoint.ApplicationRuntime.SPVirtualFile.CalculateFileDependencies(HttpContext context, SPRequestModuleData basicRequestData, ICollection& directDependencies, ICollection& childDependencies)   at Microsoft.SharePoint.ApplicationRuntime.SPDatabaseFile.EnsureDependencies(HttpContext context, SPRequestModuleData requestData)   at ….-->
  1. No comments yet.
  1. No trackbacks yet.