When trying to retrieve an archived email with an attachment you see the following error:
Server Error in '/' Application.
There is no row at position 0.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.IndexOutOfRangeException: There is no row at position 0.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[IndexOutOfRangeException: There is no row at position 0.]
System.Data.RBTree`1.GetNodeByIndex(Int32 userIndex) +1681246
Dell.AM.BusinessLayer.ConvertibleEmail2.Initialize(DataSet dataSet) +57
Dell.AM.BusinessLayer.Messages.SelectWebByCheckSumLocal(Int32 loginId, Guid checkSum) +168
Dell.AM.BL.UAC.Messages.SelectWebByCheckSum(Actor actor, Guid checkSum, Int32 instanceId, String impersonate) +119
Dell.AM.Website.ViewMessageViewModel.get_WebMessage() +108
Dell.AM.Website.ViewMessageViewModel.get_Header() +10
Dell.AM.Website.ViewMessageController.DisplayHeader(ViewMessageViewModel model) +64
Dell.AM.Website.ViewMessageController.Initialize(Boolean excludeSelfFromAccessHistory, Boolean initForPrint) +64
Dell.AM.Website.ViewMessage.Page_Load(Object sender, EventArgs e) +782
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
System.Web.UI.Control.OnLoad(EventArgs e) +91
System.Web.UI.Control.LoadRecursive() +74
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2207
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1
You also notice in the Website.wlog file:
2015-09-16 15:25:03,507 [38] ERROR Configuration.ExceptionHandlerManager - {{a267add5-c105-46ad-9b6b-a355c81e1a20}} The Internal Error happened:
System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.ArgumentException: AttachmentFile with CheckSum c9d4aa62-a5d6-8819-3f30-82123fdb2e6b does not exist
at Dell.AM.BusinessLayer.AttachmentFile.GetAttachmentPath(Guid checkSum, Boolean mustExist, CacheMode cacheMode)
at Dell.AM.BL.UAC.Attachments.SelectStreamByCheckSum(Actor actor, Guid attachmentCheckSum, Int32 instanceId, String impersonate)
at Dell.AM.Website.ViewMessageViewModel.CanConvertOle(IAttachmentSummary attachment)
at Dell.AM.Website.ViewMessageViewModel.GetAttachmentHtml()
at Dell.AM.Website.ViewMessageViewModel.get_AttachmentHtml()
at Dell.AM.Website.Controls.MessageClass.EmailMessageAttachment.Display()
at Dell.AM.Website.Controls.MessageClass.EmailMessageAttachment.Page_Load(Object sender, EventArgs e)
at System.Web.UI.Control.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.HandleError(Exception e)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at ASP.viewmessage_aspx.ProcessRequest(HttpContext context) in c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\06d40f4b\6009b3c3\App_Web_usxyznzg.18.cs:line 0
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
2015-09-16 15:25:05,161 [41] ERROR Configuration.ExceptionHandlerManager - {{a267add5-c105-46ad-9b6b-a355c81e1a20}} The Internal Error happened:
System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.ArgumentException: AttachmentFile with CheckSum c9d4aa62-a5d6-8819-3f30-82123fdb2e6b does not exist