Me encuentro ejecutando una alerta la cual me despliega un error dentro del log del AppjobWinService

System.Data.EntityCommandCompilationException: An error occurred while preparing the command definition. See the inner exception for details. ---> System.Data.MappingException: The mapping and metadata information for EntityContainer 'AppDataContext' no longer matches the information used to create the pre-generated views.
   at System.Data.Mapping.StorageMappingItemCollection.ViewDictionary.SerializedAddGeneratedViewsInEntityViewContainer(MetadataWorkspace workspace, EntityViewContainer entityViewContainer, Dictionary`2 extentMappingViews)
   at System.Data.Mapping.StorageMappingItemCollection.ViewDictionary.SerializedCollectViewsFromObjectCollection(MetadataWorkspace workspace, Dictionary`2 extentMappingViews)
   at System.Data.Mapping.StorageMappingItemCollection.ViewDictionary.SerializedGetGeneratedViews(EntityContainer container)
   at System.Data.Common.Utils.Memoizer`2.Result.GetValue()
   at System.Data.Common.Utils.Memoizer`2.Evaluate(TArg arg)
   at System.Data.Mapping.StorageMappingItemCollection.ViewDictionary.GetGeneratedView(EntitySetBase extent, MetadataWorkspace workspace, StorageMappingItemCollection storageMappingItemCollection)
   at System.Data.Query.PlanCompiler.PreProcessor.ExpandView(Node node, ScanTableOp scanTableOp, IsOfOp& typeFilter)
   at System.Data.Query.PlanCompiler.PreProcessor.ProcessScanTable(Node scanTableNode, ScanTableOp scanTableOp, IsOfOp& typeFilter)
   at System.Data.Query.PlanCompiler.PreProcessor.Visit(ScanTableOp op, Node n)
   at System.Data.Query.PlanCompiler.SubqueryTrackingVisitor.VisitChildren(Node n)
   at System.Data.Query.PlanCompiler.SubqueryTrackingVisitor.VisitRelOpDefault(RelOp op, Node n)
   at System.Data.Query.PlanCompiler.PreProcessor.Visit(FilterOp op, Node n)
   at System.Data.Query.PlanCompiler.SubqueryTrackingVisitor.VisitChildren(Node n)
   at System.Data.Query.PlanCompiler.SubqueryTrackingVisitor.VisitRelOpDefault(RelOp op, Node n)
   at System.Data.Query.PlanCompiler.SubqueryTrackingVisitor.VisitChildren(Node n)
   at System.Data.Query.InternalTrees.BasicOpVisitorOfNode.VisitDefault(Node n)
   at System.Data.Query.InternalTrees.BasicOpVisitorOfNode.VisitPhysicalOpDefault(PhysicalOp op, Node n)
   at System.Data.Query.PlanCompiler.PreProcessor.Process(Dictionary`2& tvfResultKeys)
   at System.Data.Query.PlanCompiler.PreProcessor.Process(PlanCompiler planCompilerState, StructuredTypeInfo& typeInfo, Dictionary`2& tvfResultKeys)
   at System.Data.Query.PlanCompiler.PlanCompiler.Compile(List`1& providerCommands, ColumnMap& resultColumnMap, Int32& columnCount, Set`1& entitySets)
   at System.Data.EntityClient.EntityCommandDefinition..ctor(DbProviderFactory storeProviderFactory, DbCommandTree commandTree)
   --- End of inner exception stack trace ---
   at System.Data.EntityClient.EntityCommandDefinition..ctor(DbProviderFactory storeProviderFactory, DbCommandTree commandTree)
   at System.Data.EntityClient.EntityProviderServices.CreateDbCommandDefinition(DbProviderManifest providerManifest, DbCommandTree commandTree)
   at System.Data.Objects.Internal.ObjectQueryExecutionPlan.Prepare(ObjectContext context, DbQueryCommandTree tree, Type elementType, MergeOption mergeOption, Span span, ReadOnlyCollection`1 compiledQueryParameters, AliasGenerator aliasGenerator)
   at System.Data.Objects.ELinq.ELinqQueryState.GetExecutionPlan(Nullable`1 forMergeOption)
   at System.Data.Objects.ObjectQuery`1.GetResults(Nullable`1 forMergeOption)
   at System.Data.Objects.ObjectQuery`1.System.Collections.Generic.IEnumerable<T>.GetEnumerator()
   at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source)
   at System.Linq.Queryable.FirstOrDefault[TSource](IQueryable`1 source)
   at Aseinfo.Infrastructure.Base.Entity.EntityServiceBase`2.GetEntityById(IdT id, Expression`1[] includes) in c:\VH4\Infrastructure\Base\Entity\EntityServiceBase.cs:line 271
   at Aseinfo.VH4.WindowsServices.ApplicationJobs.AlertaJob.Execute(JobExecutionContext context) in c:\VH4\VH4\WindowsServices\ApplicationJobsWindowsService\ApplicationJobs\AlertaJob.cs:line 108

La declaración del procedimiento a ejecutar es la siguiente:

PROCEDURE ALERTA_SINCRONIZACION_TABLAS (
  dat_cursor IN OUT cursor_retorno.ret_cursor
)

Y los datos que estoy retornando son los siguientes (para efectos de prueba):

    OPEN dat_cursor FOR
select 'Expedientes' controller_area,
       'Empleado' controller_name,
       'Edit' controller_action,
       242 codigo_entidad,
       'PRUEBA' texto_link,
       'PRUEBA' Columna1,
       '' Columna2,
       '' Columna3
from dual;

asked 04 Dec '14, 00:04

JulioRosales's gravatar image

JulioRosales
(suspended)
accept rate: 26%

Si ya lo resolviste pone la razón por la cual no funcionaba. Si no lo has resuelto, entonces avisamos para darle seguimiento al tema.

(09 Dec '14, 18:07) Fernando Paz ♦♦ Fernando%20Paz's gravatar image

Me parece que es un problema de actualización, porque ese error se presenta cuando el modelo de entidades no coincide con el fuente.

Revisa que los archivos DLL (especialmente el archivo Asienfo.VH4.DataModels.dll) que están copiados en el folder donde está instalado el AppJobWinService sean de la misma versión (y fecha de modificación) que los que están en el folder BIN del WebSite y el folder BIN del WorkflowService.

La otra posibilidad es que las cadenas de conexión estén mal y se esté conectando a la base EvoConfig con el modelo EF de EvoData o viceversa. O que las cadenas de conexión tengan metadata de SQL Server y la cadena de conexión sea a Oracle.

Ese error debiera ser tan grave, que ninguna de las funcionalidades del AppJobWinService debería funcionar, como las finalizaciones, las alertas, las generaciones de planilla programadas al futuro, etc.

link

answered 04 Dec '14, 00:44

Fernando%20Paz's gravatar image

Fernando Paz ♦♦
17.3k81635
accept rate: 51%

edited 04 Dec '14, 00:47

Me encuentro revisando las propiedades de los DLL's indicados y encontre que unicamente las diferencias son en la hora de dichos DLL's

(04 Dec '14, 14:41) JulioRosales JulioRosales's gravatar image

Estas son las diferencias en las propiedades de los DLL's indicados:

alt text

link

answered 04 Dec '14, 14:42

JulioRosales's gravatar image

JulioRosales
(suspended)
accept rate: 26%

Baja el servicio y volvelo a subir. Esto suele pasar si has hecho recientemente un upgrade o estas en desarrollo...

link

answered 04 Dec '14, 20:36

sabanito's gravatar image

sabanito ♦♦
(suspended)
accept rate: 54%

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:

×25

Asked: 04 Dec '14, 00:04

Seen: 3,893 times

Last updated: 09 Dec '14, 18:07

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