Users can browse files but they cannot open them. I gave the IUSR account modify access to the folder, but it still looks like an access denied error. This is the error when clicking a file in the broswer:
Server Error in '/' Application.
Runtime Error
Description:An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local
server machine.
Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors>
tag should then have its "mode" attribute set to "Off".
<!-- Web.Config Configuration File --><configuration><system.web><customErrors mode="Off"/></system.web></configuration> |
Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.
<!-- Web.Config Configuration File --><configuration><system.web><customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/></system.web></configuration> |
When I look in event viewer on the server I see this error being logged:
Event code: 3008
Event message: A configuration error has occurred.
Event time: 3/19/2013 9:20:04 AM
Event time (UTC): 3/19/2013 1:20:04 PM
Event ID: 4664ad543c2e4136a3ee63e6b48bc2d2
Event sequence: 2
Event occurrence: 1
Event detail code: 0
Application information:
Application domain: /LM/W3SVC/1/ROOT-4-130081727964529013
Trust level: Full
Application Virtual Path: /
Application Path: c:\mysite\
Machine name: IISSRV
Process information:
Process ID: 3428
Process name: w3wp.exe
Account name: IIS APPPOOL\DefaultAppPool
Exception information:
Exception type: ConfigurationErrorsException
Exception message: An error occurred loading a configuration file: Failed to start monitoring changes to 'c:\mysite\folder1\folder2\web.config' because access is denied. (c:\mysite\folder1\folder2\web.config)
Request information:
Request URL: http://IISSRV/folder1/folder2/MyTestFolder/TestFile.pdf
Request path: /folder1/folder2/MyTestFolder/TestFile.pdf
User host address: <My IP>
User:
Is authenticated: False
Authentication Type:
Thread account name: IIS APPPOOL\DefaultAppPool
Thread information:
Thread ID: 13
Thread account name: IIS APPPOOL\DefaultAppPool
Is impersonating: False
Stack trace: at System.Configuration.ConfigurationSchemaErrors.ThrowIfErrors(Boolean ignoreLocal)
at System.Configuration.BaseConfigurationRecord.GetSectionRecursive(String configKey, Boolean getLkg, Boolean checkPermission, Boolean getRuntimeObject, Boolean requestIsHere, Object& result, Object& resultRuntimeObject)
at System.Configuration.BaseConfigurationRecord.GetSection(String configKey)
at System.Web.Configuration.RuntimeConfig.GetSectionObject(String sectionName)
at System.Web.Configuration.RuntimeConfig.GetSection(String sectionName, Type type, ResultsIndex index)
at System.Web.Configuration.RuntimeConfig.get_Identity()
at System.Web.HttpContext.SetImpersonationEnabled()
at System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context)
Custom event details: