SharePoint 2019 Publishing Site Anonymous Access

Mohammed Abed 155 Reputation points
2023-06-08T12:09:17.8733333+00:00

Hi,

I am finalizing a SharePoint publishing site and everything is working fine including custom WebParts, Master Page, CSS, JS, etc. However, one issue remains which is to manage the anonymous access.

Now this site will be published publicly and will be internet-facing.

When I try to access it anonymously, I get a login prompt, and the master page is being loaded without any asset. I get 404 and 401 for all assets that are placed in Style Library. Though it works fine if I log in.

So, what are the settings that needs to be configured to make this site public and not ask for any credentials unless a user tries to access Site Content page for instance ?

  • All pages are checked out and published
  • Anonymous Access is set to entire website
  • SharePoint Server Publishing is Active
  • Limited-access User Permission Lockdown is deactivated
  • Application Level: Anonymous Policy is set to Deny Write
Microsoft 365 and Office | SharePoint Server | For business
Microsoft 365 and Office | SharePoint | Development
Microsoft 365 and Office | SharePoint | For business | Windows
Microsoft 365 and Office | SharePoint Server | Development
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Xyza Xue_MSFT 30,176 Reputation points Microsoft External Staff
    2023-06-09T02:22:03.81+00:00

    Hi @Mohammed Abed ,

    We can work together to narrow down and resolve the situation. So, Please kindly provide more information below to let us work further.

    1.Please check the steps to configure anonymous access for a SharePoint 2019 web application.

    2.Do you have an anonymous user policy that stops users from accessing the content?

    Central Administration->Web Application management

    Anonymous Access in SharePoint Server's Central Administration's Web Application management view.

    1. Configure anonymous access at site permissions?

    Anonymous access in SharePoint 2013

    1. Enable Anonymous Access at IIS.

    Open IIS Manager->Select your website->Open the Authentication settings->Make sure “Anonymous Access” is enabled.

    User's image

    5.Check that the location is allowed at web.config.

    <location path="_layouts/15/Your.Solution.Folder/page.aspx">
     <system.web>
      <authorization>
       <allow users="*"></allow>
      </authorization>
     </system.web>
    </location>
    

    Reference: https://www.koskila.net/troubleshooting-anonymous-access-sharepoint-onpremises/

    Hope the information can help you. And if there have any unclear or misunderstanding, please feel free to post back and we’ll continue to help you all the time!

    Your understanding and patience will be highly appreciated! Hope you have a good day and keep safe!


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.