gpt4 book ai didi

sharepoint-2010 - SharePoint 2010 XsltListViewWebPart - 匿名用户拒绝访问外部 xsl 文件

转载 作者:行者123 更新时间:2023-12-02 08:20:04 28 4
gpt4 key购买 nike

我将 XSLTListViewWebPart 与外部 .xsl 文件一起使用:

<xlslink>my.xls</xlslink>

通过授权访问,一切正常,但如果我尝试匿名重复此操作,则会收到错误:

Error while executing web part: System.UnauthorizedAccessException: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
at Microsoft.SharePoint.Library.SPRequest.UpdateWebPartCache(String bstrWebUrl, Boolean bAllUsers, String bstrID, Byte[]& ppsaData, Boolean fOMCall)
at Microsoft.SharePoint.WebPartPages.SPWebPartManager.CacheWriteInternal(Guid storageKey, Byte[] cacheData, Storage storage, Boolean omCall)
at Microsoft.SharePoint.WebPartPages.BaseXsltListWebPart.get_CustomizedXsl()
at Microsoft.SharePoint.WebPartPages.BaseXsltListWebPart.LoadXslCompiledTransform(WSSXmlUrlResolver someXmlResolver)
at Microsoft.SharePoint.WebPartPages.DataFormWebPart.GetXslCompiledTransform()
at Microsoft.SharePoint.WebPartPages.DataFormWebPart.PrepareAndPerformTransform(Boolean bDeferExecuteTransform)

这是 SharePoint 的错误吗?

最佳答案

这是一个 SharePoint 错误。 SharePoint 执行一次转换并缓存它,这是一个缓存问题。查看这篇文章了解更多详细信息:

http://social.technet.microsoft.com/Forums/da-DK/sharepoint2010customization/thread/3d95f279-91c0-47be-b7b9-3a0f83ff4f8c

关于sharepoint-2010 - SharePoint 2010 XsltListViewWebPart - 匿名用户拒绝访问外部 xsl 文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6937672/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com