public ExportService() { try { _exportAddin = AddinsFactory.CreateExportAddin(); } catch (Exception ex) { WebOperationContext.Current.OutgoingResponse.StatusCode = HttpStatusCode.InternalServerError; WebOperationContext.Current.OutgoingResponse.StatusDescription = ex.Message; WebOperationContext.Current.OutgoingResponse.ContentType = "application/json"; throw; } }