FAIL被加载资源:当尝试从IIS

问题描述 投票:0回答:1

I在部署位置部署了更新的DLL,当我尝试通过IIS运行应用程序时,它在favicon.ico文件上给我404错误,该文件在项目的根目录上存在。

有人请帮我解决这个问题吗?

enter image description here 我已经附加了此文件也存在的项目结构。

enter image description here

c# asp.net iis webforms asp.net-webpages
1个回答
0
投票

确保您在文件中正确设置了路径。可以说我在网站上有图标。主页:
<link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" />


    确保您已经安装了IIS的静态内容功能。
  1. 确保您添加了IIS MIME类型列表中的Image/X-Icon的MIME类型:

enter image description here注:

确保在IIS请求过滤部分中未将.ICON文件扩展名设置为拒绝列表:

enter image description here恢复:

enter image description here

最新问题
© www.soinside.com 2019 - 2025. All rights reserved.