the mysql server is running with the secure-file-priv option + using c# code example
Example: Error Code: 1290. The MySQL server is running with the --secure-file-priv option so it cannot execute this statement
LOAD DATA LOCAL INFILE ...
LOAD DATA LOCAL INFILE ...