当前位置: 代码迷 >> SharePoint >> 匿名用户回贴提示服务器内存不足,该如何解决
  详细解决方案

匿名用户回贴提示服务器内存不足,该如何解决

热度:144   发布时间:2016-05-02 07:13:29.0
匿名用户回贴提示服务器内存不足
最近网站又发现了新的问题:匿名用户回复个人网站中的博客时,会出现以下错误提示:“/”应用程序中的服务器错误。
--------------------------------------------------------------------------------

服务器内存不足

服务器上内存不足,无法运行您的程序。请与管理员联系,以解决此问题。 
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 

异常详细信息: System.OutOfMemoryException: 服务器内存不足

服务器上内存不足,无法运行您的程序。请与管理员联系,以解决此问题。

源错误: 

执行当前 Web 请求期间生成了未处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。  

堆栈跟踪: 


[OutOfMemoryException: 服务器内存不足

服务器上内存不足,无法运行您的程序。请与管理员联系,以解决此问题。]
   Microsoft.SharePoint.Library.SPRequestInternalClass.AddOrUpdateItem(String bstrUrl, String bstrListName, Boolean bAdd, Boolean bSystemUpdate, Boolean bPreserveItemVersion, Boolean bUpdateNoVersion, Int32& plID, String& pbstrGuid, Guid pbstrNewDocId, Boolean bHasNewDocId, String bstrVersion, Object& pvarAttachmentNames, Object& pvarAttachmentContents, Object& pvarProperties, Boolean bCheckOut, Boolean bCheckin, Boolean bMigration, Boolean bPublish) +0
   Microsoft.SharePoint.Library.SPRequest.AddOrUpdateItem(String bstrUrl, String bstrListName, Boolean bAdd, Boolean bSystemUpdate, Boolean bPreserveItemVersion, Boolean bUpdateNoVersion, Int32& plID, String& pbstrGuid, Guid pbstrNewDocId, Boolean bHasNewDocId, String bstrVersion, Object& pvarAttachmentNames, Object& pvarAttachmentContents, Object& pvarProperties, Boolean bCheckOut, Boolean bCheckin, Boolean bMigration, Boolean bPublish) +203
   Microsoft.SharePoint.SPListItem.AddOrUpdateItem(Boolean bAdd, Boolean bSystem, Boolean bPreserveItemVersion, Boolean bNoVersion, Boolean bMigration, Boolean bPublish, Boolean bCheckOut, Boolean bCheckin, Guid newGuidOnAdd, Int32& ulID, Object& objAttachmentNames, Object& objAttachmentContents, Boolean suppressAfterEvents) +825
   Microsoft.SharePoint.SPListItem.UpdateInternal(Boolean bSystem, Boolean bPreserveItemVersion, Guid newGuidOnAdd, Boolean bMigration, Boolean bPublish, Boolean bNoVersion, Boolean bCheckOut, Boolean bCheckin, Boolean suppressAfterEvents) +166
   Microsoft.SharePoint.SPListItem.Update() +94
   Microsoft.SharePoint.WebControls.SaveButton.SaveItem(SPContext itemContext, Boolean uploadMode, String checkInComment) +303
   Microsoft.SharePoint.WebControls.SaveButton.SaveItem() +71
   Microsoft.SharePoint.WebControls.SubmitCommentButton.SaveItem() +222
   Microsoft.SharePoint.WebControls.SaveButton.OnBubbleEvent(Object source, EventArgs e) +277
   System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +37
   System.Web.UI.WebControls.Button.OnCommand(CommandEventArgs e) +118
   System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +166
   System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +175
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565

 
刷新后回复的内容还在。但登录的用户不存在这个问题。
还有一个问题,不知道两个问题有没有联系,匿名用户访问个人网站博客中每个文章时,出现下面的错误:
“/”应用程序中的服务器错误。
--------------------------------------------------------------------------------

值不在预期的范围内。 
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 

异常详细信息: System.ArgumentException: 值不在预期的范围内。

源错误: 

执行当前 Web 请求期间生成了未处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。  

堆栈跟踪: 


[ArgumentException: 值不在预期的范围内。]
   Microsoft.SharePoint.SPListCollection.GetListByName(String strListName, Boolean bThrowException) +263
   Microsoft.SharePoint.SPListCollection.get_Item(String strListName) +39
   Microsoft.SharePoint.WebPartPages.ListFormWebPart.get_ItemContext() +271
   Microsoft.SharePoint.WebPartPages.ListFormWebPart.EnsureListAndForm() +592
   Microsoft.SharePoint.WebPartPages.ListFormWebPart.get_FormPageUrl() +1806
   Microsoft.SharePoint.WebPartPages.ListFormWebPart.OnInit(EventArgs e) +127
   System.Web.UI.Control.InitRecursive(Control namingContainer) +333
   System.Web.UI.Control.AddedControl(Control control, Int32 index) +198
   System.Web.UI.ControlCollection.Add(Control child) +80
   System.Web.UI.WebControls.WebParts.WebPartManagerControlCollection.AddWebPartHelper(WebPart webPart) +220
   System.Web.UI.WebControls.WebParts.WebPartManagerControlCollection.AddWebPart(WebPart webPart) +108