8 Şubat 2013 Cuma

Automapper - Index was outside the bounds of the array


Index was outside the bounds of the array.

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 was outside the bounds of the array.

 
Automapper'de map işlemi sırasında yukarıdaki gibi bir hata olıuşursa
Source veya Destination nesnesinde tanımlı byte [] dizisine byte [0] şeklinde bir atama yapılmıştır.

Çözüm:  byte[0] değeri  içermedeğini kontrol et.




Hiç yorum yok:

Yorum Gönder