Cause
This error occurs when a file operation conflicts with the current mode of the file; for example, if an attempt is made to write to a file opened with the mode set to File.Mode_Input or to read from a file opened with the mode set to File.Mode_Output.
Action
Change your application code to avoid these conflicts. The method and source position containing the file operation at which the exception was raised are reported in the error description.