"Index was outside the bounds of the array" on refresh Team Explorer
-
Tuesday, June 07, 2005 1:55 PMHi,
A message box saying that the "Index was outside the bounds of the array" pops up each time there is a refresh of the Team Explorer panel. Everything still seems to work fine though.
Anyone knows what is going on ? I assume it is a problem at the Team server since all the Visual Studio working on that Team Project have the same message when doing the refresh.
Pierre
Answers
-
Saturday, June 18, 2005 5:41 PM
There is an exception that's not being handled properly and the message from the exception is being shown in a dialog. Unfortunately, t's pretty hard at this point to determine what happened to create the problem without being able to attach a debugger. There have been quite a few changes made to that area of the code since beta 2.
Buck
All Replies
-
Saturday, June 18, 2005 5:41 PM
There is an exception that's not being handled properly and the message from the exception is being shown in a dialog. Unfortunately, t's pretty hard at this point to determine what happened to create the problem without being able to attach a debugger. There have been quite a few changes made to that area of the code since beta 2.
Buck -
Wednesday, September 07, 2005 3:11 PMI have the same error. It effects opening the "Documents" node. Documents can be accessed via the Sharepoint Portal, but no through the tree in VS2k5 Beta2. The problem occured after adding and deleting a document in the tree.
-
Wednesday, September 14, 2005 4:48 PMI'm having the same problem. I also cannot browse version control through team explorer. any hot fixes that may help out w\ this. we're running vs 2005 b2.
-
Friday, October 28, 2005 7:43 PMsave issue here, using RS2000 with SP2, puzzled, seems a simple report, unsure how to trace where goes wrong.
-
Sunday, November 25, 2007 12:31 AM
People ... your answers are pretty much confusing !!
well pd42 the problem is that you are retrieving a single value (Scalar) from the database and you put it in a reader like SqlReader.
Example
SqlCommandName.CommandText = "Select Count(*) from employees" //this statement return a single value Scalar
So the Sqlreader will not handle a scalar, it holds a whole record (it is like killing a bug with a gun)
you should not use reader,
Just use ExecuteScalar() as below:
-------------------------------
SqlCommandName.CommandText = "Select Count(*) from employees"
Conn.Open()
ObjectName.fieldName = SqlCommandName.ExecuteScalar()
Conn.Close()
'or if you are using presentation layer directly
Conn.Open()
Label1.Text = SqlCommandName.ExecuteScalar()
Conn.Close()
-----------------------------------
Hope it helps!! IraQi

