中易网

Server Error in '/' Application这是什么意思,我在初始化网站的时候出现的问题

答案:2  悬赏:20  
解决时间 2021-04-27 14:15
Access to the path 'E:\wlk\pacms\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 'E:\wlk\pacms\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 , 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 'E:\wlk\pacms\web.Config' is denied.]
System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +2014371
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) +998
System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share) +114
System.Xml.XmlDocument.Save(String filename) +87
PageAdmin.Install.Update_Config() +1059
PageAdmin.Install.Next_2(Object src, EventArgs e) +5
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +105
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +107
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5102
最佳答案
从错误的信息来看是网站的权限不够,建议给这个文件'E:\wlk\pacms\web.Config' 可读写权限,然后再去试试看。
全部回答
Access to the path 'E:\wlk\pacms\web.Config' is denied. 禁止访问,看下是否有权限编辑 再看看别人怎么说的。
我要举报
如以上问答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
同集路林瑶路口跨线桥/同集北路(路口)这个地
如图,它是一个数值转换机,若输入的a值为根
怎样快速申DNF级别
涂完防晒霜再涂BB霜…行吗?
做G用什么编程好!
华师和湖大,哪个学校的行政管理考研容易些
泗坪供电营业厅地址在什么地方,想过去办事
上海哪里有卖导磁体热处理设备?
我的手机号用了五年了 是动感地带的 想问一下
孝棉医院地址在什么地方,想过去办事
山东选调生出成绩到面试多长时间
请问如何把我的商品展示在搜索关键字的前面
在国企单位工作的一点也不顺心,领导同事都不
天宝楼塘沽NO.6我想知道这个在什么地方
有没有喜欢收藏袁大头的
推荐资讯
情侣间没话题了、是意味着结束么?
QQ三国上海士别三日怎么没有了
我的指甲老是留不长,软软的很容易断,这是缺
设有某进制数4+4=10,根据这个运算规则,十进
qq安全中心上的每一次登录记录,是因为之前下
我最近会用火星文了,帮我想个好名字
爱情比誓言还要重要吗~?请大家看完问题在回
嘉年华2怎么进?有人进到了吗?
我买第三责任险50万,事故死亡认定责任我主责
流行蝴蝶剑。
帮我找一首歌 里面有个词 进来看
唱歌的技巧?
手机登qq时,显示手机磁盘不足,清理后重新登
刺客的套装怎么选啊?