在 Ubuntu 上部署 Web API + Blazor WASM.WASM 的完整性问题

编程入门 行业动态 更新时间:2024-10-24 22:30:28
本文介绍了在 Ubuntu 上部署 Web API + Blazor WASM.WASM 的完整性问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时送ChatGPT账号..

我正在尝试通过 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 核心应用程序部署到 linux:https://docs.microsoft/en-us/aspnet/core/host-and-deploy/linux-nginx?view=aspnetcore-5.0

I followed this documentation from microsoft to deploy my asp core application to linux using nginx: https://docs.microsoft/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.

错误:

尝试验证完整性时发生未知错误.GET http://192.168.1.102/_framework/System.Collections.Immutable.dll 403(禁止)未能在资源的完整性"属性中找到有效的摘要http://192.168.1.102/_framework/System.Diagnostics.Contracts.dll' 具有计算的 SHA-256 完整性 'jbqRaS/StcTVS8721Y18MaPfyEnXSsdQeJ8jGaAIdNw='.该资源已被阻止. 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屋!

更多推荐

[db:关键词]

本文发布于:2023-04-29 07:34:20,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1186744.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:性问题   完整   Web   Ubuntu   API

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!