代码之家  ›  专栏  ›  技术社区  ›  SmartestVEGA

您无权查看此页面是DNS问题吗?

  •  0
  • SmartestVEGA  · 技术社区  · 15 年前

    浏览部署在IIS中的ASP.NET页时出现以下错误:

    You are not authorized to view this page
    You do not have permission to view this directory or page using the credentials that you supplied. 
    --------------------------------------------------------------------------------
    
    Please try the following:
    
    Contact the Web site administrator if you believe you should be able to view this directory or page. 
    Click the Refresh button to try again with different credentials. 
    HTTP Error 401.1 - Unauthorized: Access is denied due to invalid credentials.
    Internet Information Services (IIS)
    
    --------------------------------------------------------------------------------
    
    Technical Information (for support personnel)
    
    Go to Microsoft Product Support Services and perform a title search for the words HTTP and 401. 
    Open IIS Help, which is accessible in IIS Manager (inetmgr), and search for topics titled Authentication, Access Control, and About Custom Error Messages.
    

    这是关于DNS设置的问题吗?

    3 回复  |  直到 15 年前
        1
  •  1
  •   Michael Ekstrand    15 年前

    401错误可能不是DNS问题本身;它只是意味着,出于某种原因,用户无权查看页面。这可能是因为IIS无法查看该页,或者因为Web应用程序不允许当前Web用户查看该页。

    也就是说,DNS可能仍然是罪魁祸首。如果DNS被用作身份验证系统的一部分(我相信,在Active Directory中可能是这样),并且服务器不能正确地使用DNS来执行对用户进行身份验证所需的解决方案,那么是的,DNS可能会导致401。

        2
  •  1
  •   Gergely Orosz    15 年前

    这不是DNS问题:如果是,就找不到主机。

    如果您使用的是IIS,则站点的身份验证设置可能不正确。

        3
  •  0
  •   Agent_9191    15 年前

    401错误与DNS无关。这意味着运行IIS的帐户(或为授权和身份验证而传递给它的帐户)没有执行该页的权限。更可能是应用程序的文件夹结构存在安全问题。验证您的站点运行的帐户,以及它在Windows中对根文件夹和子文件夹具有读取权限。