Recovering role... Failed to load role entrypoint.
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
調査の方向性
WorkerRole/WorkerRole.cs の 46 行目にある PolicyRecordingBot WorkerRole のエントリポイントから始め、ログに記録されたデプロイ済み assembly のバージョンを比較します。Microsoft.Graph.Core と System.Text.Json も対象に含めます。デプロイの失敗を再現し、関係するプロジェクト参照またはパッケージ参照を追跡します。WorkerRole が manifest の定義不一致なしで正常に起動すれば完了です。
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- 言語のデータがありません
- スター
- 252
- フォーク
- 276
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
microsoftgraph/microsoft-graph-comms-samples のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 42/100
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
microsoftgraph/microsoft-graph-comms-samples#871 · コメント 5 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 30/100
microsoftgraph/microsoft-graph-comms-samples#870 · コメント 11 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 20/100
microsoftgraph/microsoft-graph-comms-samples#869 · コメント 1 件 · リアクション 1 件 ·
microsoftgraph/microsoft-graph-comms-samples の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
riverqueue/river#1576 ·
メンテナーはふだん 1 日以内に返信
-
[bug] A capability assessment drops the answers of its fifth and later requests対応中かも @jwiegley が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 80/100
DevMortimer/pi-warden#210 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
stadelmanma/fitparse-rs#64 ·
-
bump patch
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
autowarefoundation/autoware_carla_scenario#1321 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信