System.IO.IOException: A symbolic link could not be executed because its type is disabled

What does it mean? I am doing something like this:

File.Copy(@"\\foo\bar\baz.txt", @"c:\test\baz.txt");

MSDN does not describe this exception, except in general terms, and a googling search only provides error code tables.

I confirmed that the source file exists, and I am 99% sure that I have permission to copy the file to the destination.

+3
source share
3 answers

Check out this article for information on using symbolic links in .Net: " " Managing NTFS Connection Points in .NET . "

In accordance with this article:

"In particular, the .NET libraries do not include any functions for creating or querying Connection Point properties."

, , File.Copy .

+2

.

fsutil , .

+1

You will get this error if the destination file already exists. I would also like to confirm that the account on which this code is running has access to the UNC \ foo \ bar \ baz.txt file

0
source

Source: https://habr.com/ru/post/1698886/


All Articles