Sharepoint 日志文件中的记录:
05/06/2010 01:49:27.66 w3wp.exe (0x1FC4) 0x1A4C Windows SharePoint Services General
8nca Verbose Application error when access /Pages/VariationRoot.aspx, Error=给定关键字不在字典中。 在 System.ThrowHelper.ThrowKeyNotFoundException() 在 System.Collections.Generic.Dictionary`2.get_Item(TKey key)
在 Microsoft.SharePoint.Publishing.PublishingWeb.get_VariationLabelsListId() 在 Microsoft.SharePoint.Publishing.Internal.VariationSettings.get_VariationLabelsList() 在 Microsoft.SharePoint.Publishing.Internal.VariationSettings.InitializeLabels()
在 Microsoft.SharePoint.Publishing.Internal.VariationSettings.get_SpawnedLabels() 在 Microsoft.SharePoint.Publishing.WebControls.VariationsRootLandingRunTime.<>c__DisplayClass1.<Render>b__0() 在 Microsoft.SharePoint.SPSecurity.CodeToRunElevatedWrapper(Object
state) 在 Microsoft.SharePoint.SPSecurity.<>c__DisplayClass4.<RunWithElevatedPrivil...
05/06/2010 01:49:27.66* w3wp.exe (0x1FC4) 0x1A4C Windows SharePoint Services General
8nca Verbose ...eges>b__2() 在 Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToRunElevated secureCode) 在 Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(WaitCallback
secureCode, Object param) 在 Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(CodeToRunElevated secureCode) 在 Microsoft.SharePoint.Publishing.WebControls.VariationsRootLandingRunTime.Render(HtmlTextWriter
output) 在 System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) 在 System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter)
在 System.Web.UI.Control.RenderControl(HtmlTextWriter writer) 在 System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) 在 System.Web.UI.Control.RenderChild...
05/06/2010 01:49:27.66* w3wp.exe (0x1FC4) 0x1A4C Windows SharePoint Services General
8nca Verbose ...ren(HtmlTextWriter writer) 在 System.Web.UI.Control.Render(HtmlTextWriter writer) 在 System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
在 System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) 在 System.Web.UI.Control.RenderControl(HtmlTextWriter writer) 在 System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter
writer, ICollection children) 在 System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) 在 System.Web.UI.Page.Render(HtmlTextWriter writer) 在 System.Web.UI.Control.RenderControlInternal(HtmlTextWriter
writer, ControlAdapter adapter) 在 System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) 在 System.Web.UI.Control.RenderControl(HtmlTextWriter writ...
05/06/2010 01:49:27.66* w3wp.exe (0x1FC4) 0x1A4C Windows SharePoint Services General
8nca Verbose ...er) 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
/************************************************/
/*跟踪到的Microsoft.SharePoint.Publishing.dll的代码如下:*/
/*internal Guid VariationLabelsListId { get; set; } */
/*Declaring Type: Microsoft.SharePoint.Publishing.PublishingWeb */
/*Assembly: Microsoft.SharePoint.Publishing, Version=12.0.0.0 */
/************************************************/
internal Guid VariationLabelsListId
{
get
{
Guid empty = Guid.Empty;
CacheManager manager = CacheManager.GetManager(this.Web.Site);
if (this.allWebProperties == null)
{
CachedArea tryGetRootArea = manager.ObjectFactory.TryGetRootArea;
if (tryGetRootArea != null)
{
string str = tryGetRootArea.Properties["_VarLabelsListId"].ToString();
if (!string.IsNullOrEmpty(str))
{
empty = new Guid(str);
}
}
}
if (!(empty == Guid.Empty))
{
return empty;
}
return this.GetGuidProperty("_VarLabelsListId", Guid.Empty);
}
set
{
this.SetGuidProperty("_VarLabelsListId", value);
}
}
难到是找不到这个_VarLabelsListId的属性?但是为什么会找不到呢?怎么解决呢?请大家帮帮忙!谢谢!
Thanks.