1. 程式人生 > >HTTP Error 500.19

HTTP Error 500.19

details denied reference webserver target local pen not auth

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 YourLocalComputerName

\IIS_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".

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:\Users\clu\Documents\Visual Studio 2017\Projects\WebApplication1\WebApplication1‘.

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.

HTTP Error 500.19