Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

C#

Unable to Compile or run the program in workspace ?

It Shows this error in console

Cannot open assembly 'program.cs': No such file or directory.
treehouse:~/workspace$ mcs program.cs
error CS2001: Source file `program.cs' could not be found
Compilation failed: 1 error(s), 0 warnings
treehouse:~/workspace$ mono program.exe
Cannot open assembly 'program.exe': No such file or directory.

Steven Parker
Steven Parker
230,274 Points

To facilitate analysis and an accurate answer, please make a snapshot of your workspace and post the link to it here.

1 Answer

Steven Parker
Steven Parker
230,274 Points

Just a wild guess.

While waiting for your snapshot, I was wondering if you may have forgotten to save your file before you tried to compile?