HTTP 403禁止访问:此网站要求您登录 [英] HTTP 403 Forbidden : This website requires you to log in

查看:1838
本文介绍了HTTP 403禁止访问:此网站要求您登录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用 asp .net MVC 4.0 razor VS2010 IIS5.2 windows Server 2003



我已经构建了一个我想在IIS中发布的应用程序。我所做的如下所示:


  1. 清理然后构建解决方案。

  2. 右键单击项目文件并单击 PUBLISH

  3. 发布方法:文件系统

  4. 目标位置: C:\Inetpub \ www.root \测试

  5. 然后发布。

然后我去了IIS并得到了我的默认网站中的网站。快乐:)。然后我做了:


  1. 右键点击测试(我的应用)并打开属性。

  2. tabdirectory 中一切正常。

  3. asp.nettab 中,我设置了asp .net版本 4.0.30319

  4. 这里有点混乱,我将主页/索引设置为 documentstab中的默认内容页

  5. 然后我右键单击测试并点击浏览。它显示:




最有可能的原因:



此网站要求您登录。<​​/ p>

此错误(HTTP 403 Forbidden)表示此程序能够连接到
网站,但它没有查看网页的权限。


我得到的短暂的错误消息。这是我的拳头mvc应用程序和第一次托管。我的错是什么?我现在该怎么办?

解决方案

我有类似的问题。请尝试以下方法:



A.建议如下 Microsoft Technet 帮助我



解决方案是确保经过身份验证的用户 \Users 组(通常包含DOMAIN \Users组)具有 Read&执行列出文件夹内容读取权限在C:\inetpub \ www.root \ wss下面的 / BIN 文件夹中\VirtualDirectories {Sitename80}。按照下面列出的步骤授予所需权限:


  1. 打开 Windows资源管理器并导航到您的网络应用程序
    / bin 目录


  2. 右键单击该文件夹,然后单击属性


  3. 转到安全标签,然后点击修改


  4. 点击添加,然后添加本地服务器组经过身份验证的
    用户
    <服务器名称> \用户(这通常包含
    DOMAIN \Users组)。


  5. 选择读取和放大器;执行列出文件夹内容读取
    权限(如果您计划将Everyone添加到/ bin文件夹,
    grant Read仅限权限)


  6. 点击确定以应用新设置


  7. 注意:每次发布后,您可能需要,因为权限可能会被重置。


B.在VS中 - 设置您网站的默认页面,或尝试导航到特定页面,而不是仅使用网站名称打开网站。



I知道它听起来很愚蠢,但这对我来说也是问题



将您的网站发布到IIS后,导航到 http:// myServer / mySite / somePage 而不是 http:// myServer / MySite


Using asp .net MVC 4.0 , razor , VS2010 , IIS5.2 , windows Server 2003

I have built an application which i want to publish in IIS. what i did is listed below:

  1. Cleaned then built the solution.
  2. right click on project file and clicked PUBLISH.
  3. publish method : File System
  4. Target Location : C:\Inetpub\wwwroot\testing
  5. then publish.

Then i went to IIS and got my site in Default web sites. happy :). Then i did:

  1. right clicked on testing(my app) and open properties.
  2. In the tabdirectory everything goes fine.
  3. in asp.nettab, i set asp .net version 4.0.30319
  4. here is a little confusion, I set home/index as my default content page in documentstab
  5. then I right click testing and clicked browse. And it shows :

Most likely causes:

This website requires you to log in.

This error(HTTP 403 Forbidden) means that this program was able to connect to the website, but it does not have permission to view the webpage.

a short summury what i got as error message. This is my fist mvc application and first hosting. What is my fault here? what should i do now?

解决方案

I had the similar issue. Please try the following:

A. Suggestion below from Microsoft Technet helped me:

The solution is to ensure that the Authenticated Users or \Users group (which usually contains DOMAIN\Users group) has Read & Execute, List Folder Contents and Read permissions on the /BIN folder below C:\inetpub\wwwroot\wss\VirtualDirectories{Sitename80}. Follow the steps listed below to grant the required permissions:

  1. Open Windows Explorer and navigate to the /bin directory of your web application

  2. Right-click on the folder and click on Properties

  3. Go to Security tab and click on Edit

  4. Click on Add and add the local server group Authenticated Users or < SERVER NAME >\Users (this usually contains DOMAIN\Users group).

  5. Select the Read & Execute, List Folder Contents and Read permissions (if you are planning to add Everyone to the /bin folder, grant Read permissions only)

  6. Click OK to apply the new settings

  7. NOTE: you may need to to it after every Publish, as permissions somehow may get reset.

B. In VS - set the default page for your website, or try navigating to specific page as opposed to simply opening the website with only the site name.

I know it sounds dumb, but that also was the problem for me

after publishing your webiste to IIS, navigate to http://myServer/mySite/somePage instead of http://myServer/MySite

这篇关于HTTP 403禁止访问:此网站要求您登录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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