SPSecurity.RunWithElevatedPrivileges在SharePoint 2013中基于声明的身份验证中不起作用 [英] SPSecurity.RunWithElevatedPrivileges not working in claims based authentication in SharePoint 2013
问题描述
你好
当前,我们正在将网站从SharePoint 2010迁移到SharePoint2013.这些网站具有自定义功能,该功能使用"SPSecurity.RunWithElevatedPrivileges"来访问另一个Web应用程序中的列表中的数据.这些功能完美地工作 在SharePoint 2010环境中很好.但是,在SharePoint 2013中,使用"SPSecurity.RunWithElevatedPrivileges"的自定义功能在激活功能时会显示一条消息对不起,您无权访问此页面".应用程序池标识具有完全控制权" 访问另一个Web应用程序中的目标站点.
Presently we are in process of migrating sites from SharePoint 2010 to SharePoint 2013. These sites have custom features, which uses 'SPSecurity.RunWithElevatedPrivileges' to access data from list in another web application. These features work perfectly fine in SharePoint 2010 environment. However in SharePoint 2013, custom feature which uses 'SPSecurity.RunWithElevatedPrivileges' gives a message 'Sorry, you don't have access to this page' while activating feature. The App Pool Identity has 'Full Control' access on destination site in another web application.
在SharePoint 2010中,我们使用经典身份验证,但是在SharePoint 2013中,我们声明使用身份验证.
In SharePoint 2010 we are using classic authentication however in SharePoint 2013 claims authentication is used.
如果有人可以帮助我们解决此问题,这将是有帮助的.非常感谢!
It would be helpful if someone could help us to resolve this issue. Any help much appreciated !!
先谢谢了.
关于此,Sagar Acharya acharya.sagar@hotmail.com
Regards, Sagar Acharya acharya.sagar@hotmail.com
推荐答案
你好!
如何激活该功能?通过Web浏览器还是PowerShell?是Farm/WebApp功能还是Site/Web功能?您是否将帐户转换为基于声明的帐户?
How do you activate the feature? Through web browser or PowerShell? Is it Farm/WebApp feature or Site/Web feature? Did you convert the account to claims-based account?
这篇关于SPSecurity.RunWithElevatedPrivileges在SharePoint 2013中基于声明的身份验证中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!