IIS Web: access is denied due to invalid credentials.

Source: Internet
Author: User

The ASP. NET site that can be accessed in the morning has been updated once in the afternoon. When you access the site again, the dialog box for entering the server username and password (for example) appears)

If the entered information is correct, the following error is reported after three confirmation:

If you do not enter the user name and password and directly use cancel, the following error is reported:

 

I remember it happened twice in the past. It was good to restart the server once, so the first thing I thought was to restart the server, but it still didn't work after this restart. So I spent nearly two hours surfing the internet to check information, and I kept trying to change the IIS configuration. I suspect there are reasons such as cache or log full, but none of them work, in addition, only this site in IIS cannot be accessed, and other sites are okay, so it is definitely not a problem with server or IIS, after trying for a long time, I thought it might be related to this update.It seems that there was a problem in the skin file that caused a type error. Open the skin file and add the recently added skinCodeJust remove it. Oh, my God. Then, take a closer look. The only difference from the previous one is that it is used in skin. <! ----> A comment is added to the mark. It's okay to remove the comment..

Add By Sammy --> (this comment cannot be used)
<ASP: imagebuttonSkinid= "Imagebuttoneditpurple"Runat= "Server"Imageurl= "Images/edit_purple.gif"Cssclass= "Image_button"/>
<ASP: imagebuttonSkinid= "Imagebuttoncheckpurple"Runat= "Server"Imageurl= "Images/check_purple.gif"Cssclass= "Image_button"/>

 

It's really irritating. It's not easy to look up such errors.

Appendix 1: annotator in ASP. NET:

'(Single quote)
The single quote character (') introduces a comment line in VB. NET code. It can be used anywhere on a source line. The end of the physical line ends the comment.
Rem
The keyword REM also introduces a comment in VB. NET code. It can be used anywhere on a source line. The end of the physical line ends the comment.
/* And */
The characters/* and */Open and Close respectively a multi-line comment block -- the so called regular comment -- in C # code. regular comments can span over a section of a line, a single line, or multiple lines.
//
The double slash characters (//) introduce a one-line comment in C # code and can be placed anywhere on a source line. the one-line comment extends to the end of the line. equivalent to 'and REM in VB. net.
///
The comments introduced by tripple slash characters (//) are a C #-specific feature. by means of XML markup you can document your code (e.g. is used for describing parameters ). if you run the compiler with the/DOC option, it automatically generates an XML documentation file.
<! -- And -->
The characters < ! -- And -- > Are standard HTML (adopted from SGML) Comment delimiters. Note, that the comment text is sent to the browser and thus visible outside (source code ).
<% -- And -- %>
Server-side comments ( < % -- -- % > ) Enable ASP. NET page developers to prevent server code (including server controls) and static content from executing/rendering. they assume a similar role to the standard HTML comments with the smashing difference that the text of the comment is not sent to the browser.

 

Appendix 2: solutions to similar problems encountered by others for other reasons:

First, it may be that your log is full. The solution is
Save and clear logs
Open the Registry Editor and set
HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Control \ LSA \ crashonauditfail's key value is set to 1
Restart the server
It may also be caused by Kerberos authentication. The solution is
If Kerberos authentication is used, run setsps-a HTTP/Host Header server host name at the command prompt.
If not, run cscript adsutil. vbs set w3svc/ntauthenticationproviders "NTLM" at the command prompt"

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.