18 Apr 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

3 Apr 2012

Change Virtual HD (VHD) UUID in Oracle VirtualBox without Clone

This tips really helped me out when I want to copy a VHD and add a new virtual machine to my Oracle VirtualBox. I really liked VirtualBox, working fine until now, liked the integration between host and guest OS, really manageable but still have Cons on file Copy and Paste between host and guest OS. But when you tried to copy VHD to another location, and just add it to a new virtual machine, this thing came out!


Last time, I must clone that VHD which will create a new VHD/VDI with a new UUID, which was took very long time if your VHD more than a Gigs. Now, not anymore! Just ran this command, and in seconds, the UUID changed without clone the HD! And you can start creating your brand new virtual machine.

vboxmanage internalcommands sethduuid <the VHD path>


So sorry if my language screwed up Smile….