Signup/Sign In
Ask Question
Not satisfied by the Answer? Still looking for a better solution?

Metadata file '.dll' could not be found

I am working on a WPF, C# 3.0 project, and I get this error:
Error 1 Metadata file
'WORK=- \Tools\VersionManagementSystem\BusinessLogicLayer\bin\Debug
\BusinessLogicLayer.dll' could not be found C:\-=WORK=- \Tools
\VersionManagementSystem\VersionManagementSystem\CSC VersionManagementSystem


This is how I reference my usercontrols:

xmlns:vms="clr-namespace:VersionManagementSystem"
<vms:SignOffProjectListing Margin="5"/>


In any case, the System.Configuration.ConfigurationManager class doesn't appear to be accessible from a C# Class Library project.

What is the most ideal approach to do this?
by

3 Answers

akshay1995
Close Visual Studio and delete the .suo file that is next to the .sln file. (It will be re-generated the next time you Save all (or exit Visual Studio)).

I've had this problem when adding new projects to the solution on another machine and then pulling the revisions in, but the .suo file can be corrupted in other cases as well and lead to very strange Visual Studio behaviour, so deleting it is one of the things I always try.

Note that deleting the .suo file will reset the startup project(s) of the solution.
RoliMishra
I just had the same problem. Visual Studio isn't building the project that's being referenced.

Instructions:

1. Right-click on the solution and click Properties.
2. Click Configuration on the left.
3. Make sure the check box under "Build" for the project it can't find is checked. If it is already checked, uncheck, hit apply and check the boxes again.
4. (Optional) You had to do it for both Release and Debug modes on the solution properties.
sandhya6gczb
1.Close Visual Studio
2.Delete the hidden .vs folder
3.Reopen Visual Studio and rebuild the solution.

Login / Signup to Answer the Question.