码迷,mamicode.com
首页 > Web开发 > 详细

HTTP Error 500.19

时间:2017-12-03 19:58:38      阅读:254      评论:0      收藏:0      [点我收藏+]

标签:header   you   dir   sources   gre   sign   www.   requested   gem   

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

标签:header   you   dir   sources   gre   sign   www.   requested   gem   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!