When you guess "the device is not ready," is not the C # exception generated by the File Copy command. Possible exceptions:
UnauthorizedAccessException, ArgumentException, ArgumentNullException,
PathTooLongException, DirectoryNotFoundException, FileNotFoundException,
IOException, NotSupportedException
Thus, this “error” may be something that is created internally, in accordance with other comments, additional information is required. To debug this problem, I suggest the following
- Place a breakpoint in your code where the text string "device is not ready" is present in your code.
- Verify that both paths in your code are valid paths
- Is your program designed to handle UNC paths or file paths?
- The exception may be quietly encrypted, but you need to debug it to find this.
- , Windows, ? services.msc run, SQL Server ( SQL), . .
.