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# Querying With LINQ Functional Programming in C# Actions and Funcs

Code challenge error

For the past few days I have been getting the following error when submitting my code for the Actions and Func challenge

Oh no! There was a temporary issue running this code challenge. We've been notified and will investigate the problem.

If you continue experiencing problems, please contact support athelp@teamtreehouse.com.

It looks like a system error. Is anyone else experiencing similar issues?

FWIW here's my code:

Program.cs
using System;

namespace Treehouse.CodeChallenges
{
    public class Program
    {
        Func<int, int> Square = delegate(int number)
        {
            return number * number;
        };
    }
}

1 Answer

Steven Parker
Steven Parker
231,268 Points

I've noticed that sometimes, if you make an error unanticipated by the challenge designers, the challenge checker will just crash instead of giving you a useful hint. In those cases, I pretend it said "Bummer" and look for something I might want to change.

:point_right: In this case, it looks like you just forgot to put "public" before your declaration.

That worked, thank you.