Why can't images be displayed on the Asp.net logon page?

Source: Internet
Author: User

This problem occurs:

If form verification is used, the access page is started in vs. When Logon is not started, the images cannot be displayed on the logon page.

The possible cause is that the form authentication has deny user = '? 'Indicates that the anonymous user is rejected, so that the unauthenticated session cannot obtain any files or display images.

Solution:

Add in webconfig

<Location Path = "Images">
<System. Web>
<Authorization>
<Allow users = "*"/>
</Authorization>
</System. Web>
</Location>

Images is the directory of files that can be accessed without logon.

In addition, even if the above configuration is not added to webconfig, the website is published to the virtual directory of IIS, but the above problem does not occur ???

 

Related Article

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.