Operation is not valid due to the current state of the object
麻烦问下,我用c#做的wpf程序,其中一个功能是读取一个自定义类型的文件,然后读取数据,数据会提交到Oracle数据库,在DataService.CurrentDataContext.SubmitChanges()的时候会出现Operation is not valid due to the current state of the object这个错误,请问怎么解决啊,我单步调试的时有时不会出现,有时会出现,不调试,直接运行的话是一定会出现这个错误,有人遇到过么?怎么解决的?麻烦告诉下,好么?