0

I have a SharePoint site with anonymous access enabled for some pages. All the pages on the site use Friendly URLs. However, occasionally anonymous users will be prompted to log in when trying to access a page which should be open to anonymous users.

If an authenticated user browses the page, anonymous users will then be able to access the page successfully.

Why are anonymous users unable to view the page until an authenticated user does so?

  • Do you have any custom components installed on the farm? – Amal Hashim Jan 19 '15 at 17:11
  • There are custom web parts on the site, but not on the affected pages. The pages do make use of Cross Site Publishing, but anonymous access has been set on the lists / catalogs. – Chris Jan 20 '15 at 9:22
1

This was caused by a configuration setting in the web.config of the web application in use.

Specifically the 'compilation' element in the 'system.web' section had its 'batch' attribute set to true.

Setting this to false corrected the issue

This technet article explains the problem in detail.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.