1
Vote

ReportResult fails - 'record "HTML" already added'

description

DoddleReport's ReportResult works fine on a local machine, but on the production server it throws the error below.
but If I remove all <writers> from my web.config it starts complaining that it hasn't found any.

I am attaching my web.config file.

Record 'Html' already added. in System.Configuration.BaseConfigurationRecord.EvaluateOne(String[] keys, SectionInput input, Boolean isTrusted, FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentResult) в System.Configuration.BaseConfigurationRecord.Evaluate(FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentResult, Boolean getLkg, Boolean getRuntimeObject, Object& result, Object& resultRuntimeObject) в System.Configuration.BaseConfigurationRecord.GetSectionRecursive(String configKey, Boolean getLkg, Boolean checkPermission, Boolean getRuntimeObject, Boolean requestIsHere, Object& result, Object& resultRuntimeObject) в System.Configuration.BaseConfigurationRecord.GetSection(String configKey) в DoddleReport.Configuration.Config.get_Report() в DoddleReport.ReportStyle..ctor(ReportRowType rowType) в DoddleReport.ReportField..ctor(String fieldName, Type dataType) в DoddleReport.ReportSources.EnumerableReportSource.GetFields() в DoddleReport.Report..ctor(IReportSource source, IReportWriter writer) в TicketManager.Controllers.IncomeAndExpenseController.ExpensesExport(Nullable1 from, Nullable1 to) в TicketManager.Controllers.IncomeAndExpenseController.BalanceReport(Nullable1 monthID, Nullable1 year, Nullable1 xls) в lambda_method(Closure , ControllerBase , Object[] ) в System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary2 parameters) в System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters) в System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass37.<>c__DisplayClass39.b__33() в System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass4f.b__49() в System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass4f.b__49() в System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass4f.b__49() в System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass37.b__36(IAsyncResult asyncResult) в System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass25.<>c__DisplayClass2a.b__20() в System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass25.b__22(IAsyncResult asyncResult) в System.Web.Mvc.Controller.<>c__DisplayClass1d.b__18(IAsyncResult asyncResult) в System.Web.Mvc.Async.AsyncResultWrapper.<>c__DisplayClass4.b__3(IAsyncResult ar) в System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) в System.Web.Mvc.Async.AsyncResultWrapper.<>c__DisplayClass4.b__3(IAsyncResult ar) в System.Web.Mvc.MvcHandler.<>c__DisplayClass8.b__3(IAsyncResult asyncResult) в System.Web.Mvc.Async.AsyncResultWrapper.<>c__DisplayClass4.b__3(IAsyncResult ar) в System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() в System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

file attachments

comments

andreiandrei wrote May 6, 2014 at 10:37 AM

After removing everything from the <writers> section , I stopped getting the error