安装网站程序 出错了 ,找大家帮忙解决下
答案:1 悬赏:60 手机版
解决时间 2021-03-16 17:31
- 提问者网友:鐵馬踏冰河
- 2021-03-16 01:10
安装网站程序 出错了 ,找大家帮忙解决下
最佳答案
- 五星知识达人网友:玩世
- 2021-03-16 02:40
你右键网站属性选择ASP.NET 下面有个.NET版本你选择最高版本的就可以了! 追问: 前面的问题是解决了,可是又出现这问题了 Server Error in '/' Application. -------------------------------------------------------------------------------- Access to the path 'c:\inetpub\wwwroot\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 'c:\inetpub\wwwroot\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: Line 102: } Line 103: } Line 104: xml.Save(file); Line 105: return true; Line 106: } Source File: c:\Inetpub\wwwroot\install\save.aspx Line: 104 Stack Trace: [UnauthorizedAccessException: Access to the path 'c:\inetpub\wwwroot\Web.config' is denied.] System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +2014931 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 ASP.install_save_aspx.SetWebConfig() in c:\Inetpub\wwwroot\install\save.aspx:104 ASP.install_save_aspx.OnInit(EventArgs e) in c:\Inetpub\wwwroot\install\save.aspx:58 System.Web.UI.Control.InitRecursive(Control namingContainer) +371 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2034 -------------------------------------------------------------------------------- Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42 回答: 你路劲出错了 追问: 什么路径出错,说明白些,数据库还是什么? 回答: 'c:\inetpub\wwwroot\Web.config' 确定就可以
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯