Why am I getting this out of range exception, I used the same logic in framework 4.7 and never had this issue. Its running on 4.8 now, Is it something to do with that or am