" 401未授权"上目录 [英] "401 Unauthorized" on a directory

查看:207
本文介绍了" 401未授权"上目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想这是一个IIS错误,因为如果我跑我的本地计算机上的项目不会发生这种情况。

I assume this is an IIS error, as this doesn't happen if I run the project on my local machine.

我有我的样式表在〜/内容/ CSS

在该目录下的任何文件都不会在页面上加载,当我直接导航到他们,我得到了一个服务器错误:

Any files in that directory won't load on the page, and when I navigate to them directly, I get a server error:

401 - 未经授权:访问被拒绝由于凭据无效

您没有权限使用您提供的凭据查看该目录或网页。

You do not have permission to view this directory or page using the credentials that you supplied.

这仅与该目录发生什么,我都没有问题,访问的任何其他文件。有什么我需要在IIS7做停止?

This only happens with that directory, I have no problem accessing any other files. Is there something I need to do in IIS7 to stop this?

推荐答案

有可能是你没有在 IUSR_的计算机名文件夹的权限。我刚刚有了一个快速扫描,它看起来像你会找到您所需要这里的信息。

It is likely that you do not have the IUSR_computername permission on that folder. I've just had a quick scan and it looks like you will find the information you need here.

如果不是的话,你提示浏览器的用户名和密码?如果是的话它可能是IIS配置为只使用集成身份验证,因为这里描述。

If that isn't the case, are you prompted for your username and password by the browser? If so it may be that IIS is configured to use Integrated authentication only, as described here.

这篇关于" 401未授权"上目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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