I am working on data feeding console application. It feeds the xml files (data in form of xml file) from a directory to a portfolio application. It processes files one by one in for loop depends on file count.
When I run the exe of this application sometimes it suddenly stops in between because of some unknown error. Though, I have used logging mechanism and error handling. What should I do so that it should not crash (stop) in between until all the files have been processed.