Question : 'Index was outside the bounds of the array.' Issue in LINQ Query From Array

I am getting an 'Index was outside the bounds of the array.' Error in Query2

Can you see why?

1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
Dim Query1 = From n In str.Split(",")
            tmpNav.Append("<ul>" & vbCrLf)
            For Each n In Query1
                If ZipCM.Security.CanAccess(New Integer() {1, 2, 3, 4, 5}) Then
                    Dim Query2 = From nl In n.ToString().Split("|") Where nl(1) = "0" And (nl(2) = "1" Or nl(2) = "2")
                    tmpNav.Append("<li class=""site_nav"">" & Query2.Count & "</li>" & vbCrLf)
                ElseIf Not (ZipCM.Security.CanAccess(New Integer() {1, 2, 3, 4, 5})) Then
                    Dim Query2 = From nl In n.ToString().Split("|") Where nl(1) = "0" And (nl(2) = "0" Or nl(2) = "2")
                    tmpNav.Append("<li class=""site_nav"">" & Query2.Count & "</li>" & vbCrLf)
                Else
                    Dim Query2 = From nl In n.ToString().Split("|") Where nl(1) = "0" And (nl(2) = "2")
                    tmpNav.Append("<li class=""site_nav"">" & Query2.Count & "</li>" & vbCrLf)
                End If
            Next
            tmpNav.Append("</ul>" & vbCrLf)

Answer : 'Index was outside the bounds of the array.' Issue in LINQ Query From Array

maybe you can try this:
- put the source in another directory, say, /usr/src/mysql
- remove everything in /usr/local/mysql
- then run the installation again from /usr/src/mysql
Random Solutions  
 
programming4us programming4us