You should set UseVerboseErrors
from the DataServiceConfiguration
object passed to InitializeService
in your service class to true
.
public static void InitializeService(DataServiceConfiguration config)
{
// Don't let this go into prod
config.UseVerboseErrors = true;
}
You should then receive a message more helpful than "An error occurred while processing this request".
Note: I always get them mixed up, so you might need to use the ServiceBehavior
attribute to set IncludeExceptionDetailInFaults
to true as well. You assign this attribute to your service class.
[ServiceBehavior(IncludeExceptionDetailInFaults=true)]
public class FooService : DataService<FooServiceContext>