有个时候需要读取layouts下的xml文件,因此需要知道路径,以前在SP2010用的SPUtility.GetGenericSetupPath()方法获取。现在SP2013提示过期否决

看2个结构分析

关于sharepoint2013的SPUtility.GetGenericSetupPath()方法过期解决办法

 

在SP2013使用SPUtility.GetVersionedGenericSetupPath().

关于sharepoint2013的SPUtility.GetGenericSetupPath()方法过期解决办法

For an example of how this can effect you code - look below. This code is returning a Url to one of our pages that's deployed to the layouts folder. If we had not made change to include the "15" it would have pointed to the 14 hive - which is good for a 2010 solution running on 2013, but not good for us

关于sharepoint2013的SPUtility.GetGenericSetupPath()方法过期解决办法

相关文章:

  • 2021-12-22
  • 2021-09-26
  • 2022-02-07
  • 2021-08-05
  • 2021-06-16
  • 2022-12-23
  • 2021-10-12
猜你喜欢
  • 2022-12-23
  • 2021-03-31
  • 2021-12-25
  • 2021-07-15
  • 2022-12-23
  • 2022-12-23
  • 2021-07-14
相关资源
相似解决方案