Friday, October 4, 2013

CIL generation: Index was out of range. Must be non-negative and less than the size of the collection


Problem: Recently, I installed one of the model files from an ISV and everything went fine in DEV environment. I replicated the same process in UAT environment for installation and installed the model files. After which I ran the full application compile, database synchronization and then full CIL. The full CIL failed because of following error:

CIL generation: Index was out of range. Must be non-negative and less than the size of the collection

Solution: I could fix this problem by following steps:

Since there were no compilation errors in full application compile, I was sure that there are no errors in the application. The system was not able to pick some assemblies so I compiled the Tables manually and then classes. After which, I put the application on full CIL again and it worked fine.

1 comment:

  1. This comment has been removed by a blog administrator.

    ReplyDelete