码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2014-09-03 12:54:06      阅读:156      评论:0      收藏:0      [点我收藏+]

标签:http   io   使用   strong   ar   for   文件   sp   amp   

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

看2个结构分析

bubuko.com,布布扣

 

在SP2013使用SPUtility.GetVersionedGenericSetupPath().

bubuko.com,布布扣

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

bubuko.com,布布扣

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

标签:http   io   使用   strong   ar   for   文件   sp   amp   

原文地址:http://www.cnblogs.com/love007/p/3953336.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!