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# C# Basics C# Syntax Hello, World!

Sherowin Clemons Jr
Sherowin Clemons Jr
2,098 Points

C# Basics Challenge "Hello!"

I cannot figure out why the program will not run. I believe I followed the instructions correctly, but I still get an error. Please help.

Program.cs
class Program
{
    static void Main(string[] args)
    {
        System.Console.WriteLine("Hello!");
    }
}

2 Answers

Steven Parker
Steven Parker
229,783 Points

Your code looks OK to me. So I tried it in the challenge and the error message doesn't seem to be about your code but about the test system itself.

You might need to pass this one over to the Support folks.

Luke Hall
Luke Hall
400 Points

I am also having the same issue. I'm sure my code is correct. The error I get is:

Bummer: System.IO.IOException: Read-only file system at System.IO.FileSystem.CreateDirectory(String fullPath) at System.IO.Directory.CreateDirectory(String path) at Microsoft.Extensions.EnvironmentAbstractions.DirectoryWrapper.CreateDirectory(String path) at Microsoft.DotNet.Configurer.FileSentinel.Create() at Microsoft.DotNet.Configurer.DotnetFirstTimeUseConfigurer.Configure() at Microsoft.DotNet.Cli.Program.ConfigureDotNetForFirstTimeUse(INuGetCacheSentinel nugetCacheSentinel, IFirstTimeUseNoticeSentinel firstTimeUseNoticeSentinel, IAspNetCertificateSentinel aspNetCertificateSentinel, IFileSentinel toolPathSentinel, Boolean isDotnetBeingInvokedFromNativeInstaller, DotnetFirstRunConfiguration dotnetFirstRunConfiguration, IEnvironmentProvider environmentProvider) at Microsoft.DotNet.Cli.Program.ProcessArgs(String[] args, ITelemetry telemetryClient) at Microsoft.DotNet.Cli.Program.Main(String[] args)

Steven Parker
Steven Parker
229,783 Points

That's the same error I saw when testing Sherowin's code. The "Read-only file system" doesn't sound like anything you can control, and is likely a configuration issue in the server. Only the staff can fix that so I suggested contacting Support directly.