【发布时间】:2012-04-16 07:20:18
【问题描述】:
我正在尝试将上传的FileStream 从我的网络服务器写入其他服务器,这会给出错误:
Logon failure: unknown user name or bad password.
Stack Trace:
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access)
应用程序池在“网络服务”下运行,我已将此用户的其他服务器的文件夹权限设置为“网络服务 => 完全控制”。
【问题讨论】:
标签: asp.net asp.net-mvc-3 amazon-ec2 iis-6 .net