4

I got a SharePoint Project which already works with anonymous Access. Now I added an aspx-page which is used for streaming images. That aspx-page is added into a virtual directory Layouts\

Whenever I try to access that aspx-file Sharepoint does not allow anonymous access to that page even though all other pages viewable by the user work fine with anonymous access. Is there any way to change this behaviour?

Mathias F
  • 15,906
  • 22
  • 89
  • 159
Ole Albers
  • 8,715
  • 10
  • 73
  • 166

1 Answers1

4

Two requirements must be met:

  1. the page needs to inherit from the class UnsecuredLayoutsPageBase,
  2. the property AllowAnonymousAccess needs to be overridden to return true.
Marek Grzenkowicz
  • 17,024
  • 9
  • 81
  • 111