【问题标题】:36Failed to find a valid digest in the 'integrity' attribute for resource '<URL>' with computed SHA-256 integrity ''. The resource has been blocked [duplicate]36 无法在资源“<URL>”的“完整性”属性中找到有效的摘要,并计算出 SHA-256 完整性“”。该资源已被阻止[重复]
【发布时间】:2021-05-19 04:58:10
【问题描述】:

【问题讨论】:

标签: asp.net asp.net-core web-deployment blazor-webassembly


【解决方案1】:

这里有类似的问题。在我为我的 blazor 应用程序(已部署 Azure)切换到 VS2022 和 .NET6 后我的第一个软件包升级之后开始。

在降级到以前的软件包版本时,我什至能够摆脱它。这确认旧的引用在某处仍然存在,没有更新。

解决步骤:

  1. 关闭VS2022
  2. 从客户端和服务器中删除 bin 和 obj 文件夹(注意:仅尝试了客户端,但它不起作用,但没有尝试仅服务器)。
  3. VS2022 中的开放解决方案
  4. 发布

其他 Stack-overflow 文章中的解决方案对我有用: Failed to find a valid digest in the 'integrity' attribute for resource in Blazor app

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2021-10-19
    • 2019-04-13
    • 2021-03-07
    • 2021-12-23
    • 2021-05-09
    • 2018-07-03
    • 2020-10-15
    相关资源
    最近更新 更多