Open Closed

Could not load type 'Volo.Abp.AspNetCore.WebClientInfo.IWebClientInfoProvider' from assembly 'Volo.Abp.AspNetCore, Version=8.2.1.0 #7639


User avatar
0
scott7106 created
  • ABP Framework version: v8.2.1
  • UI Type: Angular
  • Database System: EF Core (SQL Server)
  • Tiered (for MVC) or Auth Server Separated (for Angular): no
  • Exception message and full stack trace:
  • Steps to reproduce the issue:

After upgrading to v8.2.1, I am getting a warning in my logs.

There are no errors that I see, just the warning. Did we miss something in an upgrade or is this an issue in the Volo packages? I have checked that all packages are v8.2.1 and we didn't miss anything.


5 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Can you try to add <PackageReference Include="Volo.Abp.AspNetCore.Abstractions" Version="8.2.1" /> to your project?

  • User Avatar
    0
    scott7106 created

    The Abstractions package was already implicitly referenced in several of the projects. I explicitly added it to the *Domain.Shared project but that had no affect. I am still getting the warnings. I also tried putting the explicit reference in the HttpApi.Host project and tried explicitly referencing Volo.Abp.AspNetCore in the HttpApi.Host project. In all cases, I still get the warning/error shown below.

    [13:16:56 WRN] Could not load type 'Volo.Abp.AspNetCore.WebClientInfo.IWebClientInfoProvider' from assembly 'Volo.Abp.AspNetCore, Version=8.2.1.0, Culture=neutral, PublicKeyToken=null'. System.TypeLoadException: Could not load type 'Volo.Abp.AspNetCore.WebClientInfo.IWebClientInfoProvider' from assembly 'Volo.Abp.AspNetCore, Version=8.2.1.0, Culture=neutral, PublicKeyToken=null'. at Volo.Abp.AspNetCore.SignalR.Auditing.AspNetCoreSignalRAuditLogContributor.PreContribute(AuditLogContributionContext context) at Volo.Abp.Auditing.AuditingHelper.ExecutePreContributors(AuditLogInfo auditLogInfo) [13:16:56 WRN] Could not load type 'Volo.Abp.AspNetCore.WebClientInfo.IWebClientInfoProvider' from assembly 'Volo.Abp.AspNetCore, Version=8.2.1.0, Culture=neutral, PublicKeyToken=null'. System.TypeLoadException: Could not load type 'Volo.Abp.AspNetCore.WebClientInfo.IWebClientInfoProvider' from assembly 'Volo.Abp.AspNetCore, Version=8.2.1.0, Culture=neutral, PublicKeyToken=null'. at Volo.Abp.AspNetCore.SignalR.Auditing.AspNetCoreSignalRAuditLogContributor.PreContribute(AuditLogContributionContext context) at Volo.Abp.Auditing.AuditingHelper.ExecutePreContributors(AuditLogInfo auditLogInfo)

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    What's your Lepton package version?

    And I think you can ignore this warning. It won't break anything.

  • User Avatar
    0
    scott7106 created

    <PackageReference Include="Volo.Abp.AspNetCore.Mvc.UI.Theme.LeptonX" Version="3.2.1" />

    Ignoring it may be an option, but it spams the log file with these messages every 5-10 seconds. This issue showed up after upgrading from 8.1.4 to 8.2.1. In the meantime, since it does not appear to be affecting the user experience, I will configure the logs to filter these messages.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    Thanks. We can watch it in next version.

Made with ❤️ on ABP v9.1.0-preview. Updated on November 11, 2024, 11:11