방금 Windows XP에 IIS를 설치했습니다.경로 'c : inetpub wwwroot myapp App_Data'에 대한 액세스가 거부되었습니다.
Access to the path 'c:\inetpub\wwwroot\myapp\App_Data' 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\myapp\App_Data' 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 70: Protected Sub cmbSettingFiles_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles cmbSettingFiles.SelectedIndexChanged
Line 71: Dim doc As XmlDocument = New XmlDocument()
Line 72: doc.Load(Path.Combine(basePath, cmbSettingFiles.SelectedValue)) Line 74: Dim settingsNode As XmlNode = doc.SelectSingleNode("/settings")Source File: C:\myapp\install\install.aspx.vb Line: 72
나는이 작업을 수행하여 격자 권한을 시도했다 : 나는 응용 프로그램을 실행하려고하면
, 나는 오류 얻을
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.
을하지만 오류가 지속됩니다.
내 코드와 관련이 있습니까?
어떻게 해결할 수 있습니까?
내 dev에 컴퓨터에 문제를 해결했다,하지만 난 여전히 내 웹 서버에 오류가 발생하고
편집 할 수 있습니다.
감사합니다.
내 dev 컴퓨터에서 파일을 사용하는 사람은 단 하나 뿐이며, 내 서버를 온라인으로 업로드 할 때도 마찬가지입니다. – Smith
나는 아래 표를 왜 묻을 수 있습니까? – Smith