最近做了个打开本地文件的功能
代码如下
string file = @"\\BBD\下载\images\《青年文摘精华千篇》.jpg";
System.Diagnostics.Process.Start(file);
局域网有台电脑名为BBD,点击按钮执行上面2行代码。
在本地运行的时候没有任何问题,但是发布到外网的时候,再通过外网访问这个网页,点击按钮。
直接报错。
System.ComponentModel.Win32Exception:登录失败: 未知的用户名或错误密码。
在 System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startInfo) 在 System.Diagnostics.Process.Start() 在
System.Diagnostics.Process.Start(ProcessStartInfo startInfo) 在 System.Diagnostics.Process.Start(String fileName) 在
app.E0.E030302.GridView1_RowCommand(Object sender, GridViewCommandEventArgs e)
位置 E:\3Gm\3GM\app\E0\E030302.aspx.cs:行号 773
BBD配置:
下载文件夹共享,用户Everyone和asp。net都赋予读写权限
是否还有什么没有配置到的吗?