简体   繁体   English

登录失败:在远程计算机中创建文件夹时,用户名未知或密码错误

[英]Logon failure: unknown user name or bad password while creating folder in remote machine

I'm trying to create a folder on remote machine (computer is in same network). 我正在尝试在远程计算机(计算机在同一网络中)上创建一个文件夹。 I'm using the code, when I try to excue the code, I'm getting following error message: 我正在使用代码,当我尝试获取代码时,出现以下错误消息:

Logon failure: unknown user name or bad password. 登录失败:用户名未知或密码错误。

Can any one suggest me how to create a folder on remote machine (which is in same network)? 有人可以建议我如何在远程计算机(位于同一网络中)上创建文件夹吗?

在此处输入图片说明

string path = @"\\16.166.187.121\c$\testingfolder\Features\Temp\";
if (!Directory.Exists(path))
{
    DirectoryInfo di = Directory.CreateDirectory(path);
}

i guess something is wrong with your credential. 我想您的凭证有问题。 take a look at here: How to provide user name and password when connecting to a network share 在这里看看: 连接到网络共享时如何提供用户名和密码

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 登录失败:用户名未知或密码错误 - Logon failure: unknown user name or bad password StreamWriter引发IOException登录失败:用户名未知或密码错误 - StreamWriter throws IOException Logon failure: unknown user name or bad password 登录失败:用户名未知或密码错误。访问其他服务器时出错 - Logon failure: unknown user name or bad password.error while accessing other server 登录失败:用户名未知或密码错误? 但是我使用正确的用户名和密码 - Logon failure: unknown user name or bad password? But I am using the right username and password 登录失败:用户名未知或密码错误。 使用C#的FTP - Logon failure: unknown user name or bad password. FTP with C# 登录失败尝试远程机器上的exec exe - Logon failure trying exec exe on remote machine UNC LogonUser:未知用户或密码错误 - UNC LogonUser: Unknown user or bad password 更改具有“当前密码=空”的远程计算机用户帐户的密码 - Change password for remote machine User Account that has “current password = empty” 从远程计算机上运行的服务开始登录 - get logon as of services running on remote machine 登录失败:未在此计算机上为用户授予请求的登录类型 - Logon failure: the user has not been granted the requested logon type at this computer
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM