简体   繁体   English

加载资源失败:服务器响应状态为 404 (Not Found) webfonts

[英]Failed to load resource: the server responded with a status of 404 (Not Found) webfonts

Font awesome icons are not displaying in the test IIS environment, but they are displaying in the localhost environment.字体真棒图标未显示在测试 IIS 环境中,但它们显示在 localhost 环境中。

I see the following error in the Console for fa-solid-900.woff2:1, fa-solid-900.woff:1 and fa-solid-900.ttf:1: Failed to load resource: the server responded with a status of 404 (Not Found)我在 fa-solid-900.woff2:1、fa-solid-900.woff:1 和 fa-solid-900.ttf:1 的控制台中看到以下错误:加载资源失败:服务器响应状态404(未找到)

The following is a URL path for one of the files:https://projectName.companyName.com/webfonts/fa-solid-900.woff2以下是其中一个文件的 URL 路径:https ://projectName.companyName.com/webfonts/fa-solid-900.woff2

The files are located in the following directory path: C:\projectName\wwwroot\Content\webfonts这些文件位于以下目录路径中:C:\projectName\wwwroot\Content\webfonts

If I copy the webfonts folder to the following directory, the font awesome icons work: C:\projectName\wwwroot\webfonts如果我将 webfonts 文件夹复制到以下目录,字体真棒图标工作:C:\projectName\wwwroot\webfonts

What should I change/update to keep the webfonts folder under the \Content folder and still have the font awesome icons work?我应该更改/更新什么以将 webfonts 文件夹保留在 \Content 文件夹下,并且字体真棒图标仍然可以使用?

该问题最终将项目发布到测试环境,并将Configuration选项设置为Release而不是Debug

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 ASP.NET MVC Angular 2无法加载资源:服务器响应状态为404(未找到) - ASP.NET MVC Angular 2 Failed to load resource: the server responded with a status of 404 (Not Found) 无法加载资源:服务器响应状态为404(未找到)EnterpriseMaster / BindNatureofAssignment:发布后无法正常工作 - Failed to load resource: the server responded with a status of 404 (Not Found) EnterpriseMaster/BindNatureofAssignment: not working after publish iFrame 错误:加载资源失败:服务器响应状态为 404 () - iFrame error: Failed to load resource: the server responded with a status of 404 () 无法加载资源; 服务器响应状态为404-bundles / jquery-MVC - Failed to load resource; the server responded with a status of 404 - bundles/jquery - MVC 加载资源失败:服务器响应状态为500(内部服务器错误 - Failed to load resource: the server responded with a status of 500 (Internal Server Error 加载资源失败:服务器响应状态为 403 () on server - Failed to load resource: the server responded with a status of 403 () on server 无法加载资源:服务器响应状态为 403(禁止访问)MVC 5 - Failed to load resource: the server responded with a status of 403 (Forbidden) MVC 5 加载资源失败:服务器响应状态为 404 ()...在我右键单击并单击查看页面上的“INSPECT”后,我收到此错误 - Failed to load resource: the server responded with a status of 404 ()…After I right click and click on “INSPECT” on my view page I get this error 加载资源失败:服务器响应状态为500(内部服务器错误)asp.net - Failed to load resource: the server responded with a status of 500 (Internal Server Error) asp.net 无法加载资源:服务器以MVC ASP.NET的状态响应500(内部服务器错误) - Failed to load resource: the server responded with a status of 500 (internal server error) for MVC ASP.NET
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM