如何修复登录失败:ASP.Net c#中的未知用户名或错误密码错误?
我使用ftp服务器。我想在ftp文件夹中加载图像,但我有一个错误如何修复登录失败: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)
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"/>
实际上,我不知道我写了什么用户名
和密码
部分
如何修复此错误