Hello,
I get a problem when I run my code in Batch.
The code is run Server side in IL code. I try to move a file which I closed before and get following .NET error :
“The process cannot access the file because it is being used by another process.”
I don’t understand why I get this, the code runs fine on client side. The file is first opened with a standard AX Asciiio object and at last I call the .close() method. After the close method I call the method below
file.close();
System.IO.File::Move(_fileName, _newFileName);
What can be the problem here :s. I close the file but still I get this error. I even putted a sleep method between the close method and the move call. This code runs fine when not run in Batch (IL code).
Thx in advance.