Recovering role... Failed to load role entrypoint.

Đang mở
#811 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
azure, csharp
Lĩnh vực
backend, cloud

Hướng nghiên cứu

Bắt đầu với điểm vào WorkerRole của PolicyRecordingBot tại WorkerRole/WorkerRole.cs dòng 46 và so sánh các phiên bản assembly đã triển khai trong log, bao gồm Microsoft.Graph.Core và System.Text.Json. Tái hiện lỗi triển khai và truy vết các tham chiếu dự án hoặc gói liên quan. Hoàn tất khi WorkerRole khởi động thành công mà không có lỗi không khớp định nghĩa manifest.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Không có dữ liệu ngôn ngữ
Star
252
Fork
276
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của microsoftgraph/microsoft-graph-comms-samples

Tất cả issue của microsoftgraph/microsoft-graph-comms-samples

Issue tương tự

Thêm issue về Backend & API Design

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.