“File Not Found” error in SharePoint 2007 site manager

When trying to edit a list from site manager in my SharePoint 2007 environment I got the following error:

File Not Found. 
at System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) 
at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) 
at System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) 
at System.Reflection.Assembly.Load(String assemblyString) 
at System.Web.Configuration.CompilationSection.LoadAssembly(String assemblyName, Boolean throwOnFail) 
at System.Web.UI.TemplateParser.AddAssemblyDependency(String assemblyName, Boolean addDependentAssemblies)at System.Web.UI.TemplateParser.ProcessDirective(String directiveName, IDictionary directive) 
at System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding)

Using the trusty old Process Monitor I was able to trace the source of the error to MOSS not being able to load Microsoft.SharePoint.ApplicationPages.dll.

I added this dll (and Microsoft.SharePoint.ApplicationPages.Administration.dll) to GAC and did an iisreset which fixed the issue.

Locations for the dlls above:

  • C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\CONFIG\ADMINBIN\Microsoft.SharePoint.ApplicationPages.Administration.dll
  • C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\CONFIG\BIN\Microsoft.SharePoint.ApplicationPages.dll
This entry was posted in Work and tagged , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *