请教一下各位大人,我最近在做一个软件,有个信息发布模块(含有附件)。在2000系统下操作完全正常,也可以远程访问,但是放到安装2003的服务器上时则不行。修改了一下webconfig后,在服务器上可以运行的,但是远程不可以,后来在服务器上都不可以了。上传文件出现错误信息如下:
System.UnauthorizedAccessException: 对路径“c:\inetpub\wwwroot\zjutam\Security\noticefill\记事本.doc”的访问被拒绝。 at System.IO.__Error.WinIOError(Int32 errorCode, String str) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean useAsync, String msgPath, Boolean bFromProxy) at System.IO.FileStream..ctor(String path, FileMode mode) at System.Web.HttpPostedFile.SaveAs(String filename) at zjutam.notice_add.Button3_Click(Object sender, EventArgs e) in c:\inetpub\wwwroot\zjutam\Security\notice_add.aspx.vb:line 96
另外还有一个问题就是我用的是input,type=file控件,但是在浏览本机上文件时,对应的图标是混乱的,不知道是不是这个存在问题。谢谢了,请指教。
System.UnauthorizedAccessException: 对路径“c:\inetpub\wwwroot\zjutam\Security\noticefill\记事本.doc”的访问被拒绝。 at System.IO.__Error.WinIOError(Int32 errorCode, String str) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean useAsync, String msgPath, Boolean bFromProxy) at System.IO.FileStream..ctor(String path, FileMode mode) at System.Web.HttpPostedFile.SaveAs(String filename) at zjutam.notice_add.Button3_Click(Object sender, EventArgs e) in c:\inetpub\wwwroot\zjutam\Security\notice_add.aspx.vb:line 96
另外还有一个问题就是我用的是input,type=file控件,但是在浏览本机上文件时,对应的图标是混乱的,不知道是不是这个存在问题。谢谢了,请指教。
解决方案 »
- GridView列头合并问题
- 无法将decimal隐式转换为float
- 1309事件错误。
- dataset里面有数据,怎么样才能把数据导入到dataset.xsd中
- 幫忙看下這段JS
- 下拉菜单,selectindex改变时,自动弹出新窗口,用RegisterClientScriptBlock方式,不能打开新窗口.请问原因.(有详细代码)
- 急!!把html放到frame里面以后 html里面的script不好用了
- 谁看过孟子的利用ASP.NET DataGrid显示主次关系的数据文章
- 如何得知一个string的长度?
- 做一个component继承DataGrid,并且在该component内添加TextBox和Button,
- datagrid自动生成列的问题
- System.InvalidCastException: Specified cast is not valid. 是什么错误?
另: "对应的图标是混乱的" 是什么意思?
“对应的图标是混乱的"是说本来是word文档的,这个文件的图标可能显示了是pdf文档的图标。我的另外一个程序也是同样部署的,就可以上传的,这个不知道怎么回事,是不是有些别的操作用冲突还是什么原因呢?
但是不知道具体为什么。
呵呵