web.config”的访问被拒绝。
2006年11月06日 03:53
点击率:4835
|
System.Web.HttpUnhandledException: 发生类型为 System.Web.HttpUnhandledException 的异常。 ---> System.UnauthorizedAccessException: 对路径“D:\项目管理\培训项目管理软件\麦田程序恢复\SWSchool\web.config”的访问被拒绝。 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, FileAccess access, FileShare share) at System.Xml.XmlDocument.Save(String filename) at SWSchool.Admin_Basic.0acd3c2012ea2ee8() at SWSchool.Admin_Basic.44d0c0526a414989(Object e0292b9ed559da7d, EventArgs fbf34718e704c6bc) at System.Web.UI.WebControls.Button.OnClick(EventArgs e) at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) at System.Web.UI.Page.ProcessRequestMain() --- 内部异常堆栈跟踪的结尾 --- at System.Web.UI.Page.HandleError(Exception e) at System.Web.UI.Page.ProcessRequestMain() at System.Web.UI.Page.ProcessRequest() at System.Web.UI.Page.ProcessRequest(HttpContext context) at System.Web.CallHandlerExecutionStep.System.Web.HttpApplication+IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
在基础设置里,遇到这类错误的用户,请将虚拟目录开放写权限.
具体方法:windows server 2000/2003 选择SWSchool5.0目录,安全-Everyone -开放"写入"权限.
windows xp home 版用户,要进入安全模式进行此项操作.
|