SQL Server Cuando el usuario ingresa a la opción "Consulta Dinámica de Empleados Activos" se genera el error "Error loading CXML Collection - Invalid URI: The format of the URI could not be determined." Para este Cliente, se hizo la prueba en la versión 1.10.1.0 (en su servidor de producción), y en ambiente de pruebas se validó con la versión 1.11.0.2 (con Anexo y Plugin 1.0.0.1) y el mensaje de error persiste. A continuación, les comparto imagen del mensaje de error, seguido por el mensaje capturado en el Elmah. ¿Cómo podría resolver esta situación? System.UriFormatException : URI no válido: no se puede determinar el formato del URI. System.AggregateException: Se han producido uno o varios errores. ---> System.UriFormatException: URI no válido: no se puede determinar el formato del URI. en System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind) en Aseinfo.VH4.Expedientes.Services.EmpleadosLivePivotCollection.<>c__DisplayClass3_0.<MakeCollection>b__4(ExpedienteModel exp) en C:\work\a3e0cbded2a6d4b3\VH4\Expedientes\Services\Empleos\EmpleadosLivePivotCollection.cs:línea 183 en System.Threading.Tasks.Parallel.<>c__DisplayClass17_0`1.<ForWorker>b__1() en System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask) en System.Threading.Tasks.Task.<>c__DisplayClass176_0.<ExecuteSelfReplicating>b__0(Object ) --- Fin del seguimiento de la pila de la excepción interna --- en System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions) en System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken) en System.Threading.Tasks.Parallel.ForWorker[TLocal](Int32 fromInclusive, Int32 toExclusive, ParallelOptions parallelOptions, Action`1 body, Action`2 bodyWithState, Func`4 bodyWithLocal, Func`1 localInit, Action`1 localFinally) en System.Threading.Tasks.Parallel.ForEachWorker[TSource,TLocal](IEnumerable`1 source, ParallelOptions parallelOptions, Action`1 body, Action`2 bodyWithState, Action`3 bodyWithStateAndIndex, Func`4 bodyWithStateAndLocal, Func`5 bodyWithEverything, Func`1 localInit, Action`1 localFinally) en System.Threading.Tasks.Parallel.ForEach[TSource](IEnumerable`1 source, Action`1 body) en Aseinfo.VH4.Expedientes.Services.EmpleadosLivePivotCollection.MakeCollection(CollectionRequestContext context) en C:\work\a3e0cbded2a6d4b3\VH4\Expedientes\Services\Empleos\EmpleadosLivePivotCollection.cs:línea 242 en Aseinfo.Infrastructure.Services.LivePivot.LivePivotHttpHandlersImplementation.ServeCxml(HttpContext context) en C:\work\a3e0cbded2a6d4b3\Infrastructure\Services\LivePivot\LivePivotHttpHandlersImplementation.cs:línea 129 en Aseinfo.VH4.UI.Web.HttpHandlers.CxmlHandler.ProcessRequest(HttpContext context) en C:\work\a3e0cbded2a6d4b3\VH4\UI\Web\HttpHandlers\CxmlHandler.cs:línea 17 en System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() en System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) ---> (Nº de excepción interna 0) System.UriFormatException: URI no válido: no se puede determinar el formato del URI. en System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind) en Aseinfo.VH4.Expedientes.Services.EmpleadosLivePivotCollection.<>c__DisplayClass3_0.<MakeCollection>b__4(ExpedienteModel exp) en C:\work\a3e0cbded2a6d4b3\VH4\Expedientes\Services\Empleos\EmpleadosLivePivotCollection.cs:línea 183 en System.Threading.Tasks.Parallel.<>c__DisplayClass17_0`1.<ForWorker>b__1() en System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask) en System.Threading.Tasks.Task.<>c__DisplayClass176_0.<ExecuteSelfReplicating>b__0(Object )<--- Actualización Luego de actualizar los nombres de las fotos de los expedientes, el error que registra Elmah es el siguiente:
System.UriFormatException : Invalid URI: The format of the URI could not be determined. System.AggregateException: One or more errors occurred. ---> System.UriFormatException: Invalid URI: The format of the URI could not be determined. at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind) at Aseinfo.VH4.Expedientes.Services.EmpleadosLivePivotCollection.<>c__DisplayClass3_0.<MakeCollection>b__4(ExpedienteModel exp) in C:\vh4\VH4\Expedientes\Services\Empleos\EmpleadosLivePivotCollection.cs:line 173 at System.Threading.Tasks.Parallel.<>c__DisplayClass17_0`1.<ForWorker>b__1() at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask) at System.Threading.Tasks.Task.<>c__DisplayClass176_0.<ExecuteSelfReplicating>b__0(Object ) --- End of inner exception stack trace --- at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions) at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken) at System.Threading.Tasks.Parallel.ForWorker[TLocal](Int32 fromInclusive, Int32 toExclusive, ParallelOptions parallelOptions, Action`1 body, Action`2 bodyWithState, Func`4 bodyWithLocal, Func`1 localInit, Action`1 localFinally) at System.Threading.Tasks.Parallel.ForEachWorker[TSource,TLocal](IEnumerable`1 source, ParallelOptions parallelOptions, Action`1 body, Action`2 bodyWithState, Action`3 bodyWithStateAndIndex, Func`4 bodyWithStateAndLocal, Func`5 bodyWithEverything, Func`1 localInit, Action`1 localFinally) at System.Threading.Tasks.Parallel.ForEach[TSource](IEnumerable`1 source, Action`1 body) at Aseinfo.VH4.Expedientes.Services.EmpleadosLivePivotCollection.MakeCollection(CollectionRequestContext context) in C:\vh4\VH4\Expedientes\Services\Empleos\EmpleadosLivePivotCollection.cs:line 228 at Aseinfo.Infrastructure.Services.LivePivot.LivePivotHttpHandlersImplementation.ServeCxml(HttpContext context) in C:\vh4\Infrastructure\Services\LivePivot\LivePivotHttpHandlersImplementation.cs:line 129 at Aseinfo.VH4.UI.Web.HttpHandlers.CxmlHandler.ProcessRequest(HttpContext context) in C:\vh4\VH4\UI\Web\HttpHandlers\CxmlHandler.cs:line 17 at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) ---> (Inner Exception #0) System.UriFormatException: Invalid URI: The format of the URI could not be determined. at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind) at Aseinfo.VH4.Expedientes.Services.EmpleadosLivePivotCollection.<>c__DisplayClass3_0.<MakeCollection>b__4(ExpedienteModel exp) in C:\vh4\VH4\Expedientes\Services\Empleos\EmpleadosLivePivotCollection.cs:line 173 at System.Threading.Tasks.Parallel.<>c__DisplayClass17_0`1.<ForWorker>b__1() at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask) at System.Threading.Tasks.Task.<>c__DisplayClass176_0.<ExecuteSelfReplicating>b__0(Object )<--- |
Revise el código fuente en el lugar donde se reporta el error en ELMAH y es el que corresponde con la verificación de la ruta de una de las fotografías. Creo que tu problema debe ser con alguna foto, revisa que sus datos estén bien en la tabla; y que el formato de la imagen sea el correcto, de acuerdo a la extensión del archivo. He actualizado los nombres de todas las fotos de los expedientes. Ahora el error que indica Elmah hace referencia a la línea 173 de EmpleadosLivePivotCollection.cs ¿Podrían indicarme qué más puedo revisar? El error sigue siendo la misma linea. Y la foto desde la pantalla del expediente sí se muestra bien? Es correcto. En el expediente la foto sí se muestra sin problema. Antes del cambio de nombre, el error era en la linea 183, ahora dice que es en la linea 173. Los nombres de las fotos tienen el formato X-XXX-XXXX.jpg 1
El problema no es la nomenclatura del archivo que contiene la foto. Lo que ha pasado en otras instalaciones es que el archivo no coincide con su contenido (por ejemplo, el archivo dice que es JPG, pero realmente tiene un JPEG o un PNG). ¿Tienen alguna recomendación para hacer esa validación? Estamos hablando de una implementación que tiene 1,953 expedientes con foto. Esta herramienta te puede decir cual es la verdadera naturaleza de un archivo (independientemente de la extension que tenga) En efecto, habían 4 registros en la UPF de archivos que no tenían una extensión definida, por lo que fueron eliminados, y validando que de esta manera la Consulta Dinámica de Empleados funciona sin problemas.
showing 5 of 7
show all
|