1

In ServiceStack is there an implementation of HttpError?

I can find the interface definition:

namespace ServiceStack.ServiceHost
{
    public interface IHttpError : IHttpResult, IHasOptions
    {
        string ErrorCode { get; }
        string Message { get; }
    }
}

But am I missing a using directive, because I get this compiler error:

The type or namespace name 'HttpError' could not be found (are you missing a using directive or an assembly reference?)

2 Answers 2

3

The HttpError class is in the ServiceStack.Common.Web namespace (ServiceStack.Common assembly/NuGet package) in the current (version 3) release of ServiceStack.

In under-development version 4, looks like it was moved to the root ServiceStack namespace.

Sign up to request clarification or add additional context in comments.

Comments

0

I just found out how to search namespaces, in VS2012 anyway... Select the class and type Shift-Alt-F10... this causes a little dropdown box to appear... click on it and you will see the namespaces that have matching class names!

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.