Glyphicons显示了优良的发展而不是当在IIS托管 [英] Glyphicons shows up fine in development but not when hosted in IIS

查看:191
本文介绍了Glyphicons显示了优良的发展而不是当在IIS托管的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以查看我的图标就好了,当开发过程中,但是,使用Visual Studio的构建部署包创建部署包,和我的本地(同一台电脑)IIS7.5服务器上托管之后,图标显示不出来。我刚刚得到了一个空白框个个

I am able to view my icons just fine when during development, however after creating the deployment package using visual studio's build deployment package, and hosting it on my local (same PC) IIS7.5 server, the icons do not show up. I just get a blank box for all of them

我检查了路径,图像都在那里。

I checked the path, the images are there.

我GOOGLE了四周,发现有人用了同样的问题,他有,但他主持了上的Apache Web项目,所以他的所作所为是对他的所有文件和文件夹,文件模式为777。

I googled around, and found someone with the same issue he had, but he was hosting his web project on apache, so what he did was to chmod all his files and folders to 777.

我有点没在IIS7.5一样,我给予我的文件夹的读/写访问,但他们仍然没有显示出来。我通过处理程序映射>查看内容>编辑权限这样做。我给了有glyphicons.png完全控制所有用户只是要确定该文件夹。

I kinda did the same in IIS7.5, I granted my folders read/write access but they're still not showing up. I did this via Handler Mappings > Content View > Edit Permissions. I gave the folder that had the glyphicons.png full control for ALL users just to be sure.

不过没有显示。还有什么检查?

Still nothing shows up. What else is there to check?

推荐答案

我一直在寻找相同的答案。对我来说,工作时,我把直接链接到网站。

I was looking for the same answer and for me, worked when I put the link directly to site.

尝试使用在提供的链接 http://glyphicons.getbootstrap.com/ 或只是把这些在你的_layout页:

Try to use the links provided at http://glyphicons.getbootstrap.com/ or just put these in your _Layout page:

  • <链接HREF =// netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css相对=样式>

&LT;脚本src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script>

&LT;链接HREF =// netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap-glyphicons.css相对=样式&GT;

<一个href="http://www.seankilleen.com/2012/12/how-to-quickly-update-mvc4-project-with.html">http://www.seankilleen.com/2012/12/how-to-quickly-update-mvc4-project-with.html

引导和字体真棒在MVC4

这篇关于Glyphicons显示了优良的发展而不是当在IIS托管的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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