Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/305.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/37.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何修复登录失败:ASP.Net c#中的未知用户名或错误密码错误?_C#_Asp.net_Ftp_Web Config - Fatal编程技术网

如何修复登录失败:ASP.Net c#中的未知用户名或错误密码错误?

如何修复登录失败:ASP.Net c#中的未知用户名或错误密码错误?,c#,asp.net,ftp,web-config,C#,Asp.net,Ftp,Web Config,我使用ftp服务器。我想在ftp文件夹中加载图像,但我有一个错误 Logon failure: unknown user name or bad password. 我的代码在这里: public string imagePathStatic = @"\\11.11.111.111\www\images\Products"; ImageCommonTemplate.PostedFile.SaveAs(imagePathStatic + ImageCommonTemplate.FileName)

我使用ftp服务器。我想在ftp文件夹中加载图像,但我有一个错误

Logon failure: unknown user name or bad password.
我的代码在这里:

public string imagePathStatic = @"\\11.11.111.111\www\images\Products";
ImageCommonTemplate.PostedFile.SaveAs(imagePathStatic + ImageCommonTemplate.FileName);
我在第二排看到了错误。 我在
web.config
中添加了一些代码,但无法修复

 <identity impersonate="true" userName="websiteName.com" password="websiteftp"/> 

实际上,我不知道我写了什么
用户名
密码
部分

如何修复此错误