“/jxkj/huiyuan”应用程序中的服务器错误。
--------------------------------------------------------------------------------
对路径“D:\jxweb\huiyuan\shangjia\ss”的访问被拒绝。
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 异常详细信息: System.UnauthorizedAccessException: 对路径“D:\jxweb\huiyuan\shangjia\ss”的访问被拒绝。 ASP.NET 未被授权访问所请求的资源。请考虑授予 ASP.NET 请求标识访问此资源的权限。ASP.NET 有一个在应用程序没有模拟时使用的基进程标识(通常,在 IIS 5 上为 {MACHINE}\ASPNET,在 IIS 6 上为网络服务)。如果应用程序正在通过 <identity impersonate="true"/> 模拟,则标识将为匿名用户(通常为 IUSR_MACHINENAME)或经过身份验证的请求用户。 若要授予 ASP.NET 对文件的写访问权,请在资源管理器中右击该文件,选择“属性”,然后选择“安全”选项卡。单击“添加”添加适当的用户或组。突出显示 ASP.NET 帐户,选中所需访问权限对应的框。源错误: 行 51: If fi.Exists = False Then
行 52: 'Create a file to write to.
行 53: Dim sw As System.IO.StreamWriter = fi.CreateText()
行 54:
行 55: sw.WriteLine("Hello")
源文件: D:\jxweb\huiyuan\shangjia\sjmb.aspx.vb 行: 53 堆栈跟踪: [UnauthorizedAccessException: 对路径“D:\jxweb\huiyuan\shangjia\ss”的访问被拒绝。]
System.IO.__Error.WinIOError(Int32 errorCode, String str) +393
System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean useAsync, String msgPath, Boolean bFromProxy) +888
System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize) +44
System.IO.StreamWriter.CreateFile(String path, Boolean append) +55
System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize) +49
System.IO.StreamWriter..ctor(String path, Boolean append) +66
System.IO.FileInfo.CreateText() +29
huiyuan.sjmb.Button1_Click(Object sender, EventArgs e) in D:\jxweb\huiyuan\shangjia\sjmb.aspx.vb:53
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +57
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +18
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain() +1277
访问权限怎么设啊,我的右键属性里怎么没有安全选项啊?
我是用vb.net做的,还有别的办法吗?????
--------------------------------------------------------------------------------
对路径“D:\jxweb\huiyuan\shangjia\ss”的访问被拒绝。
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 异常详细信息: System.UnauthorizedAccessException: 对路径“D:\jxweb\huiyuan\shangjia\ss”的访问被拒绝。 ASP.NET 未被授权访问所请求的资源。请考虑授予 ASP.NET 请求标识访问此资源的权限。ASP.NET 有一个在应用程序没有模拟时使用的基进程标识(通常,在 IIS 5 上为 {MACHINE}\ASPNET,在 IIS 6 上为网络服务)。如果应用程序正在通过 <identity impersonate="true"/> 模拟,则标识将为匿名用户(通常为 IUSR_MACHINENAME)或经过身份验证的请求用户。 若要授予 ASP.NET 对文件的写访问权,请在资源管理器中右击该文件,选择“属性”,然后选择“安全”选项卡。单击“添加”添加适当的用户或组。突出显示 ASP.NET 帐户,选中所需访问权限对应的框。源错误: 行 51: If fi.Exists = False Then
行 52: 'Create a file to write to.
行 53: Dim sw As System.IO.StreamWriter = fi.CreateText()
行 54:
行 55: sw.WriteLine("Hello")
源文件: D:\jxweb\huiyuan\shangjia\sjmb.aspx.vb 行: 53 堆栈跟踪: [UnauthorizedAccessException: 对路径“D:\jxweb\huiyuan\shangjia\ss”的访问被拒绝。]
System.IO.__Error.WinIOError(Int32 errorCode, String str) +393
System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean useAsync, String msgPath, Boolean bFromProxy) +888
System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize) +44
System.IO.StreamWriter.CreateFile(String path, Boolean append) +55
System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize) +49
System.IO.StreamWriter..ctor(String path, Boolean append) +66
System.IO.FileInfo.CreateText() +29
huiyuan.sjmb.Button1_Click(Object sender, EventArgs e) in D:\jxweb\huiyuan\shangjia\sjmb.aspx.vb:53
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +57
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +18
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain() +1277
访问权限怎么设啊,我的右键属性里怎么没有安全选项啊?
我是用vb.net做的,还有别的办法吗?????
解决方案 »
- 在ASP.NET中,通过按钮,控制页面表格显示的问题。
- 应用程序中的服务器错误问题
- 谁知道 TurboCMS、TRS 他们是如何实现多站点管理的?每个站点有自己的独立的内容和权限用户
- “相似”“相关”解决方法?
- 问题:如何从指定文件夹下搜索某一个指定的文件名,并将此文件的路径输出
- 《asp.net办公自动化系统开发实例导航》
- 关于从数据库中随机select的问题
- 通过webservices访问接口时出现异常,被阻止。。。
- 请问大家做应用时,查询是怎样实现的?
- 如何在WebForm中在执行套打的功能?
- 关于datagrid最后一页的显示问题
- 谁有FreeTextBox中文版下载地址,或者发我邮箱也行!
我装的是win2000server,好像是fat分区的