File Not Found Error?

Posted on 2010-04-05
Medium Priority
Last Modified: 2012-05-09

When I execute one of the following scenarios, I get the error message "File Not Found":
- Site Actions -> Create
- Site Actions -> Edit Page -> Add a Web Part
- Site Actions -> Site Settings

And, by modifying the attribute "customErrors mode='On' " in the web.config file I got the following error message which explains more the problem:

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)

But, when I checked for the relative files to "Create" (which is create.aspx) and "Site Settings" (which is settings.aspx) in "/12/TEMPLATES/LAYOUTS" folder, the files are well existing.

So what can be the problem? and how to resolve it?

Question by:pgirardier
  • 2
LVL 10

Expert Comment

by:Uday Ethirajulu
ID: 29823329
did you made any changes to web.config? or by any tools

if yes,
refer : http://www.sharepointkings.com/2008/05/moss-2007-file-not-found-error.html

~Uday, http://www.mstechblogs.com/sharepoint

Author Comment

ID: 29882364
No, this happened while testing a custom field type.

I followed the instruction in the suggested URL which consists in removing the extra xmlns attribute (xmlns="urn:schemas-microsoft-com:asm.v1") in the config file, but this did not resolve the problem.

Is there another method?

Accepted Solution

pgirardier earned 0 total points
ID: 29889876
Well, I could resolve this problem basing on the described idea in this article:

And, I have read many articles about this error. But, all of theme could not be applied in my case. In fact, it seems that this error is very generic and it can be caused by many different causes like it is described in this blog: http://amargalla.com/sharepoint/42-file-not-found-error-on-sharepoint-pages

Particularly, in my case, the problem is resolvd by copying the DLL file "Microsoft.SharePoint.ApplicationPages.dll" from "/12/CONFIG/BIN" to "/VirtualDirectories/80/_app_bin".

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

If you create your solutions on SharePoint sooner or later you will come upon a request to set  permissions of the item depending on some of the item's meta-data - the author, people assigned as approvers, divisions, categories etc. The most natu…
Microsoft SharePoint Foundation 2010 and Microsoft SharePoint Server 2010 do not offer the option to configure the location of the SharePoint diagnostic trace log files during installation.  This can, however, be configured through Central Administr…
Watch the video of Kernel Migrator for SharePoint, which demonstrate the process easily of migration from SharePoint to SharePoint, OneDrive for Business & Google Drive servers, Public Folder to SharePoint, File Server to SharePoint. The tool has va…
Through the video, you can check the migration process of Outlook PST file to PDF. Kernel for Outlook to PDF tool can convert Outlook emails with all attributes like Subject, To, From, Cc, Bcc and other folders such as Inbox, Outbox, Sent Items, Jun…

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question