HTTP Error 500.19 - Internal Server Error
The requested page cannot be accessed because the related configuration data for the page is invalid.
需要给文件夹添加权限
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中允许所有用户访问
允许所有用户访问
<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:
To enable the method:
- Open the IIS Management Console on the web server
- Expand the Sites folder
- Double-Click the IIS - Authentication option
- Under Authentication, select the Anonymous Authentication and click ‘Disable‘ in the Actions pane on the right
- For Windows Authentication: Select the Windows Authentication and click ‘Enable‘ in the Actions pane on the right
- 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.