Apr 18, 2012

‘File Not Found’ Error after SmartPart Installed on SharePoint 2007

Guys, I think want to share something from today’s work. Some colleague found a problem with our SharePoint 2007 and been installed with SmartPart. I don’t know what version which causing the problem. But seems that this is a common problem. When you look at the Web Part gallery, and there’s a new button to create a new *.dwp file. Tried to click it, and you’ll got the error, File Not Found.

Before I wrote this, I have no idea what SmartPart is, to be honest. But, once again, always put your hope on search engine, and it’ll work (well, not always).

Please, enjoy the solutions at this address, http://smartpart.codeplex.com/workitem/2708. The method call involving registering an assembly. And as I thought, it only just an assembly file problem, not pointing to a correct version. SmartPart is using System.Web.Extensions the old version (1.0.61025.0) while in the whole SharePoint web context is using another newer version. That’s why it throws an error.

It says that you need to add (or modify if it does exist) the entry in dependentAssembly in web.config. Check and re-check the XML before applying.

Web.Config change
  1. <dependentAssembly>
  2.     <assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35" culture="neutral" />
  3.     <bindingRedirect oldVersion="1.0.61025.0" newVersion="" />
  4. </dependentAssembly>

Hope it helps you out.Winking smile