c# - 'The target account name is incorrect'-IOException with DirectoryInfo.GetFiles -


i doing , working before:

var di = new directoryinfo("folderonshareddrive"); var files = di.getfiles("*"); 

i have exception , difference can see have windows 10.

exception thrown: 'system.io.ioexception' in mscorlib.dll additional information: target account name incorrect. 

try use ip address instead of computer name.


Comments

Popular posts from this blog

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

How to show in django cms breadcrumbs full path? -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -