WCF Data Service not returning detailed errors RRS feed

  • Question

  • I configured my WCF Data Service this way:

    public static void InitializeService(DataServiceConfiguration config)
          config.UseVerboseErrors = true;

    In the HandleException method I set this:

     protected override void HandleException(HandleExceptionArgs args)
          args.UseVerboseErrors = true;

    I added this attribute to my service class:

      [ServiceBehavior(IncludeExceptionDetailInFaults = true)]
      public class InformationService: DataService<InformationEntities>

    On the client side (Android) I get this message from the server:

    An error occurred while processing this request.

    Where is the detailed exception? What else should I set?


    Friday, August 2, 2013 7:04 AM