IIS 文件授权请求失败

发布于 2024-12-25 07:52:52 字数 2810 浏览 0 评论 0原文

我正在尝试访问我们本地网络服务器上的网页。当我浏览该页面时,我收到了 Windows 身份验证挑战。即使我尝试输入我的凭据,它仍然会再次询问。正如您从下面的错误消息中看到的,我已通过身份验证。

我检查了用户帐户,它可以访问根文件夹和所有较低的文件夹。我在 IIS 中的所有站点上都收到此错误消息

有什么建议吗?

Log Name:      Application
Source:        ASP.NET 4.0.30319.0
Date:          1/5/2012 4:12:33 PM
Event ID:      1314
Task Category: Web Event
Level:         Information
Keywords:      Classic
User:          N/A
Computer:      SALTIIS01

Description:
Event code: 4008 
Event message: File authorization failed for the request. 
Event time: 1/5/2012 4:12:33 PM 
Event time (UTC): 1/6/2012 12:12:33 AM 
Event ID: 349fcb2ec3c24b16a862f6eb9b23dd6c 
Event sequence: 7 
Event occurrence: 3 
Event detail code: 0 

Application information: 
    Application domain: /LM/W3SVC/2/ROOT/Application/SNCDW-19-129702818025409890 
    Trust level: Full 
    Application Virtual Path: /Application/SNCDW 
    Application Path: D:\Sites\WCF\Application\SNCDW\ 
    Machine name: SALTIIS01 

Process information: 
    Process ID: 1896 
    Process name: w3wp.exe 
    Account name: iisservice 

Request information: 
    Request URL: http://webservicestest/Application/SNCDW/PC.svc 
    Request path: /Application/SNCDW/PC.svc 
    User host address: 10.60.16.79 
    User: js3228 
    Is authenticated: True 
    Authentication Type: Negotiate 
    Thread account name: iisservice 

自定义事件详细信息:

事件 Xml: <代码> <事件 xmlns="http://schemas.microsoft.com/win/2004/08/events/event"> <系统> <提供商名称=“ASP.NET 4.0.30319.0”/>1314<等级>4 <任务>3 <关键字>0x800000000000004189<频道>应用 <计算机>SALTIIS01.intranet.com <安全性>> <事件数据> <数据>4008请求文件授权失败。 <数据>1/5/2012 4:12:33 PM <数据>1/6/2012 12:12:33 AM <数据>349fcb2ec3c24b16a862f6eb9b23dd6c <数据>7 <数据>3 <数据>0 <数据>/LM/W3SVC/2/ROOT/Application/SNCDW-19-129702818025409890 <数据>完整 <数据>/应用程序/SNCDW <数据>D:\Sites\WCF\Application\SNCDW\ <数据>SALTIIS01 <数据> <数据>1896 <数据>w3wp.exe <数据>iisservice <数据>http://webservicestest/Application/SNCDW/PC.svc <数据>/Application/SNCDW/PC.svc <数据>10.60.16.79 <数据>js3228 <数据>真 <数据>协商 <数据>iisservice

I am trying to access a webpage on our local web server. When I browse to the page I get the windows auth challange. Even if i try to enter my credentials it keeps asking again. As you can see from the below error message i am authenticated.

I checked the user account and it has access to the root folder and all lower folders. I get this error message for all sites in IIS

Any advice?

Log Name:      Application
Source:        ASP.NET 4.0.30319.0
Date:          1/5/2012 4:12:33 PM
Event ID:      1314
Task Category: Web Event
Level:         Information
Keywords:      Classic
User:          N/A
Computer:      SALTIIS01

Description:
Event code: 4008 
Event message: File authorization failed for the request. 
Event time: 1/5/2012 4:12:33 PM 
Event time (UTC): 1/6/2012 12:12:33 AM 
Event ID: 349fcb2ec3c24b16a862f6eb9b23dd6c 
Event sequence: 7 
Event occurrence: 3 
Event detail code: 0 

Application information: 
    Application domain: /LM/W3SVC/2/ROOT/Application/SNCDW-19-129702818025409890 
    Trust level: Full 
    Application Virtual Path: /Application/SNCDW 
    Application Path: D:\Sites\WCF\Application\SNCDW\ 
    Machine name: SALTIIS01 

Process information: 
    Process ID: 1896 
    Process name: w3wp.exe 
    Account name: iisservice 

Request information: 
    Request URL: http://webservicestest/Application/SNCDW/PC.svc 
    Request path: /Application/SNCDW/PC.svc 
    User host address: 10.60.16.79 
    User: js3228 
    Is authenticated: True 
    Authentication Type: Negotiate 
    Thread account name: iisservice 

Custom event details:

Event Xml:

<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="ASP.NET 4.0.30319.0" />
<EventID Qualifiers="16384">1314</EventID>
<Level>4</Level>
<Task>3</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2012-01-06T00:12:33.000000000Z" />
<EventRecordID>4189</EventRecordID>
<Channel>Application</Channel>
<Computer>SALTIIS01.intranet.com</Computer>
<Security />
</System>
<EventData>
<Data>4008</Data>
<Data>File authorization failed for the request.</Data>
<Data>1/5/2012 4:12:33 PM</Data>
<Data>1/6/2012 12:12:33 AM</Data>
<Data>349fcb2ec3c24b16a862f6eb9b23dd6c</Data>
<Data>7</Data>
<Data>3</Data>
<Data>0</Data>
<Data>/LM/W3SVC/2/ROOT/Application/SNCDW-19-129702818025409890</Data>
<Data>Full</Data>
<Data>/Application/SNCDW</Data>
<Data>D:\Sites\WCF\Application\SNCDW\</Data>
<Data>SALTIIS01</Data>
<Data>
</Data>
<Data>1896</Data>
<Data>w3wp.exe</Data>
<Data>iisservice</Data>
<Data>http://webservicestest/Application/SNCDW/PC.svc</Data>
<Data>/Application/SNCDW/PC.svc</Data>
<Data>10.60.16.79</Data>
<Data>js3228</Data>
<Data>True</Data>
<Data>Negotiate</Data>
<Data>iisservice</Data>
</EventData>
</Event>

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

烟雨扶苏 2025-01-01 07:52:52

授予读取权限

IIS 应用程序池\YourAppPool

位于网站的根文件夹中。

Give read access to

IIS AppPool\YourAppPool

on the root folder of the website.

笑红尘 2025-01-01 07:52:52

确保所有 IIS 相关用户都具有访问权限,以下是一些:

  • iisservice
  • IUSR
  • IIS_IUSRS
  • 网络服务

另外,如果您使用 websitepanel,请确保也允许其用户。

Be sure all IIS related users have access, heres some:

  • iisservice
  • IUSR
  • IIS_IUSRS
  • Network Service

Also if your using websitepanel be sure to allow its users too.

情泪▽动烟 2025-01-01 07:52:52

在授予 Everyone 访问权限之前,我无法让它工作。

  1. 打开 Windows 资源管理器
  2. 选择网站文件夹,例如 C:\inetpub\wwwroot\MyWebsite
  3. 右键单击该文件并选择“属性”
  4. 选择“安全”选项卡
  5. 单击“编辑”,然后单击“添加”按钮
  6. 单击“位置”按钮并确保选择本地计算机。 (如果服务器属于 Windows 域,则不是 Windows 域。)
  7. “输入要选择的对象名称:”文本框中输入 Everyone
  8. 单击“检查名称”按钮,然后单击“确定”。

I couldn't get it to work until I gave Everyone access.

  1. Open Windows Explorer
  2. Select the website folder e.g. C:\inetpub\wwwroot\MyWebsite.
  3. Right click the file and select "Properties"
  4. Select the "Security" tab
  5. Click the "Edit" and then "Add" button
  6. Click the "Locations" button and make sure you select the local machine. (Not the Windows domain if the server belongs to one.)
  7. "Enter the object names to select:" text box enter Everyone.
  8. Click the "Check Names" button and click "OK".
你穿错了嫁妆 2025-01-01 07:52:52

无论如何,@J-man 的评论(对“添加每个人都为我工作...”答案)建议添加“用户”本地计算机帐户,在遵循标记答案添加其他本地计算机帐户后,最终对我有用机器帐户。
这也是他提供的链接

For what it's worth, the comment from @J-man (to the "Add Everyone worked for me..." answer) suggesting to add "Users" local machine account ultimately worked for me after following the marked answer's adding of the other local machine accounts.
Here's the link he provided as well.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文