产品使用及交流论坛

首页 » 产品使用交流区 » 安装及使用交流 » 网站后台运行出现错误,重新上传master对网站有影响吗
cxl87054362 - 2010/10/6 11:15:00
网站后台在提交信息时出现错误,无法继续,重新定义后台也是这个错误
Server Error in '/' Application.
--------------------------------------------------------------------------------

Access to the path 'D:\Hosting\6394491\html\web.Config' is denied.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.UnauthorizedAccessException: Access to the path 'D:\Hosting\6394491\html\web.Config' is denied.

ASP.NET is not authorized to access the requested resource. Consider granting access rights to the resource to the ASP.NET request identity. ASP.NET has a base process identity (typically {MACHINE}\ASPNET on IIS 5 or Network Service on IIS 6) that is used if the application is not impersonating. If the application is impersonating via <identity impersonate="true"/>, the identity will be the anonymous user (typically IUSR_MACHINENAME) or the authenticated request user.

To grant ASP.NET access to a file, right-click the file in Explorer, choose "Properties" and select the Security tab. Click "Add" to add the appropriate user or group. Highlight the ASP.NET account, and check the boxes for the desired access.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.  

Stack Trace:


[UnauthorizedAccessException: Access to the path 'D:\Hosting\6394491\html\web.Config' is denied.]
   System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +7716623
   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) +1162
   System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share) +66
   System.Xml.XmlTextWriter..ctor(String filename, Encoding encoding) +37
   System.Xml.XmlDocument.Save(String filename) +77
   PageAdmin.set_1.x3d491fe0043e8fd3() +2990
   PageAdmin.set_1.PageAdmin_Data_update(Object src, EventArgs e) +41
   System.EventHandler.Invoke(Object sender, EventArgs e) +0
   System.Web.UI.WebControls.Button.OnClick(EventArgs e) +111
   System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +110
   System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565

该如何处理

附件: QQ截图未命名.jpg
shengge - 2010/10/6 11:30:00
web.Config' is denied. 表示没有文件修改权限
cxl87054362 - 2010/10/6 13:33:00
应该怎么处理啊
xcrane - 2010/10/6 22:23:00
权限问题,不是后台问题,文件在自己电脑上还是在服务器上
在自己电脑上调试的话,给目录权限
cxl87054362 - 2010/10/7 8:26:00
在服务器上,怎么办
cxl87054362 - 2010/10/7 8:27:00
在服务器上,怎么办
xcrane - 2010/10/7 20:01:00
你的文件是不是没有放在根目录下呀
cxl87054362 - 2010/10/8 8:32:00
怎么办   是不是得重新上传啊
xcrane - 2010/10/8 21:57:00
FTP软件可以直接修改文件属性的,右击web.config,选择属性,修改为777
还不行,我也不清楚原因了
1
查看完整版本: 网站后台运行出现错误,重新上传master对网站有影响吗