I have created a C# application whose inputs are some large Excel files.
In my code, I open it, process and then close it. The whole process takes some 15-20 minutes. During this time when I try to open some other Excel files(1) externally, anyone of the input Excel files(2) (which is currently being processed) is also getting opened along with this. When I try to close this(2), exception occurs and the tool aborts its process.
I think the problem occurs because the Excel files are opened under the same instance. How can I avoid this?