简体   繁体   English

Sharepoint 2010中单个匿名访问aspx的问题

[英]Problems with single anonymous access aspx in Sharepoint 2010

I got a SharePoint Project which already works with anonymous Access. 我有一个已经使用匿名访问的SharePoint项目。 Now I added an aspx-page which is used for streaming images. 现在我添加了一个用于流式图像的aspx页面。 That aspx-page is added into a virtual directory Layouts\\ 该aspx页面被添加到虚拟目录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. 每当我尝试访问该aspx文件时,Sharepoint不允许匿名访问该页面,即使用户可查看的所有其他页面都可以正常访问。 Is there any way to change this behaviour? 有没有办法改变这种行为?

Two requirements must be met: 必须满足两个要求:

  1. the page needs to inherit from the class UnsecuredLayoutsPageBase , 页面需要从UnsecuredLayoutsPageBase类继承,
  2. the property AllowAnonymousAccess needs to be overridden to return true . 需要重写属性AllowAnonymousAccess才能返回true

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM