HTTP Error 500.19

HTTP Error 500.19 - Internal Server Error

The requested page cannot be accessed because the related configuration data for the page is invalid.

https://stackoverflow.com/questions/9216158/the-requested-page-cannot-be-accessed-because-the-related-configuration-data-for?page=1&tab=votes#tab-top

需要给文件夹添加权限

You need to assign permissions for IIS_IUSRS on the local machine (but you don't have to assign for IUSR, in fact it will work even if you explicitly deny permissions).

To assign permissions, just right click on the folder and on the security tab make sure to grant the correct permissions, and if the user is not listed then click "ADD", and enter IIS_IUSRS (and make sure that under "domain" the local computer is selected, or enter in the name field YourLocalComputerNameIIS_IUSRS), and then you are good to go.

If you want you can instead of assigning permissions to the IIS_IUSRS group, you can instead assign to the app pool which should in general be "IIS APPPOOL app pool name".

首先确认一下是否有Users的权限,如果没有的话,在本机下面添加

用systeminfo命令查看自己的computer name搜索出来,然后加上反斜杠,再加上IIS_IUSRS。进行check

 

Application Pool的权限,也是在本机添加 

Parser Error

Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Could not load type 'WebApplication1.Global'.

Source Error:


Line 1: <%@ Application Codebehind="Global.asax.cs" Inherits="WebApplication1.Global" Language="C#" %>

Source File: /WebForm/global.asax Line: 1

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.6.1590.0

这个错误,需要编译一下website的project。

Server Error in '/WebForm' Application.

Access is denied.

Description: An error occurred while accessing the resources required to serve this request. You might not have permission to view the requested resources.

Error message 401.3: You do not have permission to view this directory or page using the credentials you supplied (access denied due to Access Control Lists). Ask the Web server's administrator to give you access to 'C:UserscluDocumentsVisual Studio 2017ProjectsWebApplication1WebApplication1'.

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.6.1590.0

需要调整一下iis中website的authentication,或者在web.config中允许所有用户访问

https://stackoverflow.com/questions/20683522/an-error-occurred-while-accessing-the-resources-required-to-serve-this-request

允许所有用户访问

<system.web>
    <authorization>    
        <allow users="*" />
    </authorization>    
</system.web>

设置权限

This is an old question but the answer is seriously insecure, you should add and enable the authentication provider that you require rather than giving anyone authorization.

To add the provider:

https://www.iis.net/configreference/system.webserver/security/authentication/windowsauthentication/providers/add

To enable the method:

  1. Open the IIS Management Console on the web server

  2. Expand the Sites folder

  3. Double-Click the IIS - Authentication option

  4. Under Authentication, select the Anonymous Authentication and click 'Disable' in the Actions pane on the right

  5. For Windows Authentication: Select the Windows Authentication and click 'Enable' in the Actions pane on the right

  6. For Basic Authentication: Select the Basic Authentication and click 'Enable' in the Actions pane on the right

HTTP Error 401.2 - Unauthorized

You are not authorized to view this page due to invalid authentication headers.

这个开启匿名模式访问

Server Error in '/WebForm' Application.

The resource cannot be found.

Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.

Requested URL: /WebForm/login.aspx

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.6.1590.0

HTTP Error 401.3 - Unauthorized
You do not have permission to view this directory or page because of the access control list (ACL) configuration or encryption settings for this resource on the Web server.

原文地址:https://www.cnblogs.com/chucklu/p/7966842.html