SQL Server
Evolution 1.10.1.0 y 1.11.0.2

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?

alt text

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 )<---

asked 11 Sep '17, 14:47

Henry%20Sandoval's gravatar image

Henry Sandoval
(suspended)
accept rate: 53%

edited 27 Sep '17, 01:40


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.

link

answered 11 Sep '17, 17:26

Fernando%20Paz's gravatar image

Fernando Paz ♦♦
17.3k81635
accept rate: 51%

edited 11 Sep '17, 17:26

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?

(27 Sep '17, 01:32) Henry Sandoval Henry%20Sandoval's gravatar image

El error sigue siendo la misma linea. Y la foto desde la pantalla del expediente sí se muestra bien?

(27 Sep '17, 08:23) sbarahona ♦♦ sbarahona's gravatar image

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

(27 Sep '17, 08:30) Henry Sandoval Henry%20Sandoval's gravatar image
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).

(27 Sep '17, 11:04) Fernando Paz ♦♦ Fernando%20Paz's gravatar image

¿Tienen alguna recomendación para hacer esa validación? Estamos hablando de una implementación que tiene 1,953 expedientes con foto.

(27 Sep '17, 11:39) Henry Sandoval Henry%20Sandoval's gravatar image

Esta herramienta te puede decir cual es la verdadera naturaleza de un archivo (independientemente de la extension que tenga)

(27 Sep '17, 11:45) sbarahona ♦♦ sbarahona's gravatar image

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.

(09 Apr '18, 10:25) Henry Sandoval Henry%20Sandoval's gravatar image
showing 5 of 7 show all
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Evolution en BitBucket

En este sitio puede acceder al código fuente, centro de descargas y reportar bugs, propuestas y mejoras para Evolution.

Evolution en JIRA

En este sitio puedes sugerir nueva funcionalidad para Evolution, o puedes votar por la funcionalidad ya propuesta por otros usuarios.

Tags:

×8

Asked: 11 Sep '17, 14:47

Seen: 2,028 times

Last updated: 09 Apr '18, 10:25

[Acerca de] [Preguntas Frecuentes] [Privacidad] [Soporte] [Contacto]
Copyright 2013-2018. Asesores en Informática