IIS 7.5没有图像css js显示 [英] IIS 7.5 no images css js showing

查看:351
本文介绍了IIS 7.5没有图像css js显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有2个Windows 2008 R2 x64服​​务器NLB,ARR具有共享配置。我有一个网络共享中的应用程序文件。 ASP.net页面(.aspx)出来好,但没有css,images,js工作。我也有一个.htm文件显示css和图像很好。

I have 2 Windows 2008 R2 x64 servers NLB, ARR with shared configuration. I have the application files in a network share. ASP.net pages (.aspx) come up fine but no css,images,js work. I also have a .htm file shows css and images just fine.

在iis日志中,我看到一个401.3消息。所以它似乎是权限,但不知道还有什么要配置权限明智。

In the iis log I do see a 401.3 message. So it seems to be permissions but not sure what else to configure permissions wise.

我在以下网址阅读类似的问题:

I read similiar issues at:

MVC + IIS7 = CSS问题

http://serverfault.com/questions/70050/adding-a-virtual -directory-iis-7-5-windows-7-ultimate-x64 / 130322#130322

http://serverfault.com/questions/126978/iis-7-5-401-3-access-denied

我试过建议的解决方案 - 没有一个似乎工作(除非我错过了一些东西)。非常感谢任何建议!

I tried the suggested solutions - none seems to work (unless I missed something). Any advice is greatly appreciated!

推荐答案

好的,这是我做了什么来解决我的问题。

Okay here's what I did to resolve my issue.


  1. 由于我的应用程序文件在文件共享中,匿名用户帐户无法访问它们。这是因为默认情况下,IUSR帐户用于Anoymous用户。如果您已创建自定义应用程序池,或者您可以指定帐户,请在IIS->站点 - >身份验证中为应用程序池标识设置匿名身份验证。

  1. Since my app files are in a file share the Anonymous user account couldn't access them. This is because by default IUSR account is used for Anoymous user. In IIS->Site->Authentication set Anonymous Authentication to Application Pool Identity if you have created a custom app pool OR you can specify an account.

C: \WINDOWS\Microsoft.NET\Framework\v2.0.50727\caspol.exe -m -ag 1 -urlfile://// \computername\sharename *FullTrust -exclusive on

C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\caspol.exe -m -ag 1 -url "file:////\computername\sharename*" FullTrust -exclusive on

这篇关于IIS 7.5没有图像css js显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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