Recovering role... Failed to load role entrypoint.
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 35/100
Línea de trabajo
Comienza con el punto de entrada de PolicyRecordingBot WorkerRole en WorkerRole/WorkerRole.cs, línea 46, y compara las versiones de los assemblies desplegados que aparecen en los logs, incluidos Microsoft.Graph.Core y System.Text.Json. Reproduce el fallo de despliegue y rastrea las referencias de proyecto o paquete implicadas. Se considera terminado cuando WorkerRole se inicia correctamente sin la discrepancia de definición del manifiesto.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
I am trying to deploy the PolicyRecordingBot and I am having some issues on the WorkerRole for the cloud service
Here are the steps that I am following:
https://github.com/microsoftgraph/microsoft-graph-comms-samples/tree/master/Samples/V1.0Samples/LocalMediaSamples/PolicyRecordingBot
I am getting the next errors:
System.IO.FileLoadException: Could not load file or assembly 'Microsoft.Graph.Core, Version=2.0.13.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference.
I have tried the next:
- Trying to update version using the NuGet Manager
- Adding dependentAssembly entries on the app.config file
Have you seen a similar error?
Could you please recommend something to try to fix those issue?
Thanks a lot!
Here is the complete logs from the Publish action:
11:08:14 PM - Deployment Status: Running.
11:08:15 PM - Role instance status:
CRWorkerRole_IN_0
Status: RoleStateAborted
Details:
Failed to load role entrypoint. System.IO.FileLoadException: Could not load file or assembly 'System.Text.Json, Version=6.0.0.6, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
at Microsoft.Graph.Communications.Common.Telemetry.Obfuscation.ObfuscationConfiguration.SetObfuscationEngine(IObfuscationEngine engine, Boolean addOdataType, ObfuscationMember[] members)
at Microsoft.Graph.Communications.Common.Telemetry.Obfuscation.ObfuscationConfiguration..ctor(IObfuscationEngine engine, IEnumerable`1 filters, Boolean addOdataType, ObfuscationMember[] members, Assembly[] assemblies)
at Microsoft.Graph.Communications.Common.Telemetry.Obfuscation.HashingObfuscationConfiguration..ctor(IEnumerable`1 filters, Boolean addOdataType, ObfuscationMember[] members)
at Microsoft.Graph.Communications.Common.Telemetry.GraphLogger..ctor(String component, IEnumerable`1 properties, Boolean redirectToTrace, ObfuscationConfiguration obfuscationConfiguration)
at Sample.PolicyRecordingBot.WorkerRole.WorkerRole..ctor() in C:\Users\Administrator\Documents\dev\workspace\msgraph\microsoft-graph-comms-samples-master\Samples\V1.0Samples\LocalMediaSamples\PolicyRecordingBot\WorkerRole\WorkerRole.cs:line 46
--- End of inner exception stack trace ---
at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)
at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
at System.Activator.CreateInstance(Type type, Boolean nonPublic)
at System.Activator.CreateInstance(Type type)
at Microsoft.WindowsAzure.ServiceRuntime.RoleEnvironment.GetRoleEntryPoint(Assembly entryPointAssembly)
at Microsoft.WindowsAzure.ServiceRuntime.RoleEnvironment.CreateRoleEntryPoint(RoleType roleTypeEnum)
at Microsoft.WindowsAzure.ServiceRuntime.RoleEnvironment.InitializeRoleInternal(RoleType roleTypeEnum)' [2025-02-22T23:07:58.000Z] Last exit time: [2025/02/22, 23:07:58.950]. Last exit code: 0.
CRWorkerRole_IN_1
Status: RoleStateStarting
Details:
Recovering role... Failed to load role entrypoint. System.IO.FileLoadException: Could not load file or assembly 'Microsoft.Graph.Core, Version=2.0.13.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
at Microsoft.Graph.Communications.Common.Telemetry.Obfuscation.ObfuscationConfiguration.GetDefaultCoreAssemblies()
at Microsoft.Graph.Communications.Common.Telemetry.Obfuscation.ObfuscationConfiguration..ctor(IObfuscationEngine engine, IEnumerable`1 filters, Boolean addOdataType, ObfuscationMember[] members, Assembly[] assemblies)
at Microsoft.Graph.Communications.Common.Telemetry.Obfuscation.HashingObfuscationConfiguration..ctor(IEnumerable`1 filters, Boolean addOdataType, ObfuscationMember[] members)
at Microsoft.Graph.Communications.Common.Telemetry.GraphLogger..ctor(String component, IEnumerable`1 properties, Boolean redirectToTrace, ObfuscationConfiguration obfuscationConfiguration)
at Sample.PolicyRecordingBot.WorkerRole.WorkerRole..ctor() in C:\Users\Administrator\Documents\dev\workspace\msgraph\microsoft-graph-comms-samples-master\Samples\V1.0Samples\LocalMediaSamples\PolicyRecordingBot\WorkerRole\WorkerRole.cs:line 46
--- End of inner exception stack trace ---
at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)
at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
at System.Activator.CreateInstance(Type type, Boolean nonPublic)
at System.Activator.CreateInstance(Type type)
at Microsoft.WindowsAzure.ServiceRuntime.RoleEnvironment.GetRoleEntryPoint(Assembly entryPointAssembly)
at Microsoft.WindowsAzure.ServiceRuntime.RoleEnvironment.CreateRoleEntryPoint(RoleType roleTypeEnum)
at Microsoft.WindowsAzure.ServiceRuntime.RoleEnvironment.InitializeRoleInternal(RoleType roleTypeEnum)' [2025-02-22T23:08:06.000Z] Last exit time: [2025/02/22, 23:08:06.531]. Last exit code: 0.
CRWorkerRole_IN_2
Status: RoleStateStarting
Details:
Recovering role... Failed to load role entrypoint. System.IO.FileLoadException: Could not load file or assembly 'Microsoft.Graph.Core, Version=2.0.13.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
at Microsoft.Graph.Communications.Common.Telemetry.Obfuscation.ObfuscationConfiguration.GetDefaultCoreAssemblies()
at Microsoft.Graph.Communications.Common.Telemetry.Obfuscation.ObfuscationConfiguration..ctor(IObfuscationEngine engine, IEnumerable`1 filters, Boolean addOdataType, ObfuscationMember[] members, Assembly[] assemblies)
at Microsoft.Graph.Communications.Common.Telemetry.Obfuscation.HashingObfuscationConfiguration..ctor(IEnumerable`1 filters, Boolean addOdataType, ObfuscationMember[] members)
at Microsoft.Graph.Communications.Common.Telemetry.GraphLogger..ctor(String component, IEnumerable`1 properties, Boolean redirectToTrace, ObfuscationConfiguration obfuscationConfiguration)
at Sample.PolicyRecordingBot.WorkerRole.WorkerRole..ctor() in C:\Users\Administrator\Documents\dev\workspace\msgraph\microsoft-graph-comms-samples-master\Samples\V1.0Samples\LocalMediaSamples\PolicyRecordingBot\WorkerRole\WorkerRole.cs:line 46
--- End of inner exception stack trace ---
at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)
at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
at System.Activator.CreateInstance(Type type, Boolean nonPublic)
at System.Activator.CreateInstance(Type type)
at Microsoft.WindowsAzure.ServiceRuntime.RoleEnvironment.GetRoleEntryPoint(Assembly entryPointAssembly)
at Microsoft.WindowsAzure.ServiceRuntime.RoleEnvironment.CreateRoleEntryPoint(RoleType roleTypeEnum)
at Microsoft.WindowsAzure.ServiceRuntime.RoleEnvironment.InitializeRoleInternal(RoleType roleTypeEnum)' [2025-02-22T23:08:02.000Z] Last exit time: [2025/02/22, 23:08:02.431]. Last exit code: 0.
CRWorkerRole_IN_3
Status: RoleStateStarting
Details:
Recovering role... Application startup task 0 finished successfully. [2025-02-22T23:08:05.000Z] Last exit time: [2025/02/22, 23:07:49.134]. Last exit code: 0.
11:08:45 PM - Deployment Status: Running.
- Lenguaje dominante
- Sin datos de lenguaje
- Estrellas
- 252
- Forks
- 276
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de microsoftgraph/microsoft-graph-comms-samples
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
-
Dificultad 4/5 3-5 días Aptitud para principiantes 42/100
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
microsoftgraph/microsoft-graph-comms-samples#871 · 5 comentarios ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 30/100
microsoftgraph/microsoft-graph-comms-samples#870 · 11 comentarios ·
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 20/100
microsoftgraph/microsoft-graph-comms-samples#869 · 1 comentario · 1 reacción ·
Todos los issues de microsoftgraph/microsoft-graph-comms-samples
Issues similares
-
auto:producer auto:security
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
fritzprix/libr-agent#2595 ·
Los mantenedores suelen responder en 1 día
-
Non-root first start logs "Base venv updated (stamp mismatch)" instead of the first-run messageAbiertoarea: infrastructure bug priority: low
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
snapotter-hq/SnapOtter#4573 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 83/100
-
comp: ssr comp: zones type: feature version: current (v17+)
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
angular/angularfire#3836 ·
Los mantenedores suelen responder en 3 días