Metadata file could not be found

If you get the following error "Metadata file <some exe or dll> could not be found" in building a project in visual studio it is likely because you have a reference to an assembly or application that was done by path and not the GAC and the file no longer exists.

In your build output you will have something like

To check go to the references section of your project that won't build and look for a reference that matches the ones being reported not to exist. Delete it and re add the reference if required and then rebuild. Your "metadata could not be found error" should go away".

 


Published Sunday, January 10, 2010 11:25 AM by simonsabin

Comments

Monday, January 11, 2010 11:41 AM by SqlServerKudos

# Metadata file could not be found

Kudos for a great Sql Server article - Trackback from SqlServerKudos