在 Ubuntu 上部署 Web API + Blazor WASM.WASM 的完整性问题 [英] Deploy Web API + Blazor WASM on Ubuntu. Integrity issue of WASM

查看:41
本文介绍了在 Ubuntu 上部署 Web API + Blazor WASM.WASM 的完整性问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试通过 SSH 在 ubuntu 服务器上部署我的 Web Api + Blazor WASM 项目.我的 Blazor WASM 项目在我的 Web Api 项目中被引用并且共享相同的端口.

I'm trying to deploy my Web Api + Blazor WASM Project on an ubuntu server by SSH. My Blazor WASM project is referenced in my Web Api project and are sharing the same port.

我按照微软的这个文档使用 nginx 将我的 asp.net 核心应用程序部署到 linux:https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/linux-nginx?view=aspnetcore-5.0

I followed this documentation from microsoft to deploy my asp.net core application to linux using nginx: https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/linux-nginx?view=aspnetcore-5.0

我对 Web API 有 0 个问题.我可以使用 swagger 并且我的数据库正确响应我的请求.不幸的是,当我尝试访问 Blazor 网站时,我被困在加载组件上,并且我收到有关我正在使用的 DLL 完整性的奇怪错误.

I have 0 issues with the Web API. I have access to swagger and my database is correctly responding to my requests. Unfortunately when I try to go to the Blazor website, I get stuck on the loading component and I get weird errors about the integrity of the DLL's i'm using.

错误:

  • Unknown error occurred while trying to verify integrity.
  • GET http://192.168.1.102/_framework/System.Collections.Immutable.dll 403 (Forbidden)
  • Failed to find a valid digest in the 'integrity' attribute for resource http://192.168.1.102/_framework/System.Diagnostics.Contracts.dll' with computed SHA-256 integrity 'jbqRaS/StcTVS8721Y18MaPfyEnXSsdQeJ8jGaAIdNw='. The resource has been blocked.

我收到了数百个这样的错误.看起来它无法验证我的 blazor 网站文件的完整性.

I get hundreds of those errors. It looks like it cannot verify the integrity of my blazor web site files.

我完全不知道我的 blazor 应用程序的发布有什么问题.

I have absolutely no idea what is wrong with the publishing of my blazor application.

有谁知道如何解决这个问题或有一些关于在哪里搜索的提示?

Does anyone know how to solve this or have some tips on where to search?

感谢您的帮助!

推荐答案

我通过浏览网络选项卡并检查阻塞的 dll 找到了解决方案.

I have found the solution by browsing the network tab and checking the blocking dlls.

我公司的防病毒软件阻止了这些文件.杀毒软件停用后,该网站又可以正常运行了.

My company antivirus was blocking the files. Once the antivirus deactivated the site was functioning again.

这篇关于在 Ubuntu 上部署 Web API + Blazor WASM.WASM 的完整性问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆