【发布时间】:2013-08-10 12:25:23
【问题描述】:
为了上传文件,我将<identity impersonate="true" /> 添加到Web.Config 文件中,因为我无法设置读取和写入权限。
一切正常,但现在,我不知道原因,服务器一直要求我输入用户名和密码来上传文件,我插入了我的 ftp 用户名和密码。
我怎样才能绕过这个? (我只能编辑 Web.config)
目前,我有这个:
<identity impersonate="true" />
<authentication mode="Windows"/>
我试过了:
<identity impersonate="true" userName="ftpaccount" password="ftppassword" />
但是没有用。
【问题讨论】:
-
您的服务器使用哪个 IIS 版本?
标签: c# asp.net authentication iis