Error loading UserControl: Value does not fall within the expected range.
Source Microsoft.SharePoint
Stack Trace: at Microsoft.SharePoint.SPListItemCollection.get_Item(Guid uniqueId)
at iomer.SharePoint.ASC.CustomWebControls.Documents.DocumentViewer.EnsureDocumentLibraryAndFolder()
at iomer.SharePoint.ASC.CustomWebControls.Documents.DocumentViewer.GetCachedDocument()
at iomer.SharePoint.ASC.CustomWebControls.Documents.DocumentViewer.LoadDocument()
at iomer.SharePoint.ASC.CustomWebControls.Documents.DocumentViewer.LoadData()
at iomer.SharePoint.ASC.CustomWebControls.Documents.DocumentViewer.Page_Load(Object sender, EventArgs e)
at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)
at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
at System.Web.UI.Control.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.AddedControl(Control control, Int32 index)
at System.Web.UI.ControlCollection.Add(Control child)
at iomer.SharePoint.UserControlHostWebpart.HostingWebpart.CreateChildControls()