Estoy agregando una columna PropertyBagData de la entidad PeriodosPlanilla a la pantalla de Generación de Planilla (en la vista ~EvolutionAreasSalariosViewsPeriodoPlanillaCustomGenerarPlanilla.aspx). Siguiendo la respuesta a la pregunta Custom view - Equipo o dotación del puesto Me dió el siguiente error:
Código agregado:
<td> <%= Html.Encode((XDocument.Parse(periodoPlanilla.RawPropertyBagData).Descendants().SingleOrDefault(p => p.Name.LocalName == "Descripcion").FirstNode as XText).Value) %>%></td>
Error resultante:
Se ha producido un inconveniente...
La acción 'GenerarPlanilla' del controlador 'PeriodoPlanilla' ha lanzado la excepción 'HttpException' con el mensaje: Error executing child request for handler 'System.Web.Mvc.HttpHandlerUtil+ServerExecuteHttpHandlerWrapper'.
System.Web.HttpException (0x80004005): Error executing child request for handler 'System.Web.Mvc.HttpHandlerUtil+ServerExecuteHttpHandlerWrapper'.
---> System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown.
---> System.Xml.XmlException: Root element is missing.
asked
16 Jun '17, 17:30
Jimy Tobar ♦♦
(suspended)
accept rate:
56%