错误日志在代码的这一部分捕获了错误Group Cannot Be Found
。
private void GetTreeView(PRDConfig.System SelectedSystem = PRDConfig.System.PRD)
{
try
{
using (SPMonitoredScope scope = new SPMonitoredScope("[{0}]{1}".FormatWith(Location, System.Reflection.MethodBase.GetCurrentMethod().Name)))
{
var filePlan = new Mensa.CommonLibrary.FilePlan();
var FilePlanList = SPHelper.GetListByUrl(PRDConfig.GetString(PRDConfig.Config.FilePlanList,SelectedSystem));
var listCollection = SortByTitle ? filePlan.GetSortByTitleFilePlan(SelectedSystem) : filePlan.GetSortByReferenceFilePlan(SelectedSystem);
//Last inserted log
Log.LogDebug("GetListByUrl : " + PRDConfig.GetString(PRDConfig.Config.FilePlanList, SelectedSystem), Location);
if (Page.IsPostBack)
tvFilePlan.Nodes.Clear();
foreach (SPListItem item in listCollection)
{
if (item != null)
{
var node = GetFormattedNode(FilePlanList, item.Folder);
tvFilePlan.Nodes.Add(node);
}
}
}
}
catch (Exception ex)
{
ex.PreserveStackTrace();
throw;
}
}
我不确定哪一行引起Group not found
错误,因此我想插入更多日志记录。
如何查看上次插入的日志之后正在检查的组?
谢谢。