Link to home
Start Free TrialLog in
Avatar of bjeverett
bjeverettFlag for United States of America

asked on

"Load of property 'OutputPath' failed" Error

When trying to build a solution in Visual Studio 2003, I receive this error:

"Load of property 'OutputPath' failed.  The 'Output Path' must be under the project folder."

The OutputPath property of the project is set to the "bin\debug" folder which exists in the project directory.

What causes this error?
Avatar of Si_Hibbard
Si_Hibbard
Flag of United States of America image

Are you using source control - in which case maybe the folder is locked?

Otherwise some reference seems to have been messed up somewhere - could spend a long time trying to find the problem - or it may be simpler just to recreate the project again.
Avatar of bjeverett

ASKER

Yes, the project is in a TortoiseHg source control directory.

However, "bin" and "obj" are the only folders in the project that are NOT under source control.
Only time I have seen this is when it was already under source control but locked, hmm is it just co-incedence that it is not under source control. I wouldn't have thought it would matter but VS can be funny. Maybe try putting it under source control - and seeing if it is related. Or taking the project out of source control completely and see if you still have the problem, I would guess not - but atleast might get a pointer to what is causing the problem.
ASKER CERTIFIED SOLUTION
Avatar of akhileshcoer
akhileshcoer
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
The problem was a result of having a multiple project solution with multiple dependencies. One of the shared assemblies wasn't getting updated properly.