I have been receiving the following VPHOT error:
Server Error in '/app' Application.
Index 0 is either negative or above rows count.
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: Index 0 is either negative or above rows count.
Source Error:
Line 708: Line 709: Dim lview As New DataView(list, "", "Distance Asc", DataViewRowState.CurrentRows) Line 710: Dim closest As String = lview(0)("Name") Line 711: Return activeMeasurements(closest) Line 712:
Source File: C:\projects\VphotGit\Logic\BL\Util.vb Line: 710
Stack Trace:
[IndexOutOfRangeException: Index 0 is either negative or above rows count.] System.Data.DataView.GetRow(Int32 index) +1792437 BL.Util.FindPrimaryTarget(Hashtable activeMeasurements, Int32 imgW, Int32 imgH) in C:\projects\VphotGit\Logic\BL\Util.vb:710 SingleImageReport.SaveToLog() +1075 SingleImageReport.lbtnKeep_Click(Object sender, EventArgs e) +20 System.Web.UI.WebControls.LinkButton.OnClick(EventArgs e) +116 System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument) +106 System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +12 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +15 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +9760098 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1639
Could someone tell me if I'm doing something wrong or is there something wrong with VPHOT?
Is the problem reproducible?
Note the exact time and share the file to SGEO.
I'll take a look.
George
I sent the stacked files to you. If you want, I can send you the eight unstacked files too.
I just tried another standard field, NGC7790, and it's the same error message as before. I have a feeling that VPHOT now hates standard fields.
I've had the same error msg a few times. Has been quite a while. Wondered if it was VPHOT or my file, had no idea. Waited awhile and tried again, worked ok. If it helps you, they were not standard fields.
Gary
The bug appears to correlate with pushing a Single Image Photometry report into the Analysis Log when there is no target specified in the report.
For now all I can offer is to advise avoid doing that.
George
Gary and Tim:
I've been discussing this issue with George for the past three days. He indicated that what you seem to be trying to do is click 'keep this' on the Single Image Photometry page when you do not have a target and/or check listed in the target estimates table.
Is this correct? I can not think of any circumstance when you would want to do that? Maybe that is why vphot gives an error?
Can you provide some feedback about my assumption by describing what you were doing when the error occurred?
Ken