Solved

Compile errors

Posted on 2014-03-14
11
219 Views
Last Modified: 2014-03-26
When trying to Build Solution, we get a bunch of errors. I just configured this computer yesterday, and just installed Visual Studio 2010. This project, with all the source code works fine and compiles fine for all the other developers (using same solution). So I am assuming I am having a config/setup problem with my project/ visual studio.

Errors:
error CS0006: Metadata file C:\I1Source\Applications\...\...\bin\Debug\...Shared.Common.dll could not be found.
error CS0006: Metadata file C:\I1Source\Applications\...\...\bin\Debug\...ReportRepository.Common.dll could not be found.

The list goes on, but they are all the same error type.

I also tried going to Configuration Manager, and changing the Active Solution Platform from Any CPU to x64 and vice versa. Also unchecked all the checkboxes under Build, and reapplied them. Still no luck.
0
Comment
Question by:pzozulka
  • 5
  • 5
11 Comments
 
LVL 22

Expert Comment

by:p_davis
ID: 39930591
do you have a process that is locking your build up? something that might hold on to a connection to one or more of your dll's or exe's if it isn't shutdown properly... i have had this happen many times.
0
 
LVL 8

Author Comment

by:pzozulka
ID: 39930602
No I do not. I also rebooted my computer several times, and made sure to attempt a build before running/opening any other apps.
0
 
LVL 22

Expert Comment

by:p_davis
ID: 39930614
have you tried to clean the solution and rebuild?
0
 
LVL 22

Expert Comment

by:p_davis
ID: 39930615
are there third party tool you use that need to be integrated?
0
 
LVL 8

Author Comment

by:pzozulka
ID: 39930616
I actually just went to the destination, and found out the dll files are actually not there.

To better understand the compilation errors, I am trying to understand what the compiler is looking for -- does it output those dll files to those directories, or is it actually needing those dll files in order to compile?
0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 22

Expert Comment

by:p_davis
ID: 39930629
its a reference that its looking for that is not there that should be giving you the errors. 2010 is fairly buggy so your guess is as good as mine as to why it wouldn't produce the files it knows it needs on  a build/debug... especially sense a debug run requires a build.


i usually have to clean the build and then rebuild if i get this errors ... sometimes doing this after closing out of the solution and visual studio.
0
 
LVL 8

Author Comment

by:pzozulka
ID: 39930657
We use TortoiseSVN as the only 3rd party solution.

I tried cleaning, and then closing out of visual studio, the building the solution, but no luck.

I'm still a bit confused whether or not the files it's looking for were already suppose to be there, or are OUTPUT files that it was suppose to place there?
0
 
LVL 78

Expert Comment

by:David Johnson, CD, MVP
ID: 39930665
if these dll's are in your debug/release folder then they are built on the fly.. Later on in your code you may have missing references to these dll's

Build each project in your solution separately  and see where it starts to fail.

Did you keep and install all of the extensions that you had in the older visual studio?
0
 
LVL 22

Expert Comment

by:p_davis
ID: 39930754
might want to make sure the GAC is in order
0
 
LVL 8

Accepted Solution

by:
pzozulka earned 0 total points
ID: 39946520
The issue was with Build Events. The project solution is shared on a source controlled repository. By downloading the project to my computer, I inherited all the settings for the project into my visual studio environment.

The problem was that all the other developers have two hard drives -- system drive C: and development (SSD) drive D:.

Under project properties > Build Events, there was a Pre-build event command line that involved drive D.

My PC came with only a single drive (SSD) drive C: and the local source repository was downloaded to this drive. Once I changed the path of that command to drive C, everything compiled normally.
0
 
LVL 8

Author Closing Comment

by:pzozulka
ID: 39955458
Found own solution.
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

744 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now