I have two web applications both on the same IIS 7 box. One application is running in an app pool with .NET 2.0. The other is running in a different app pool with .NET 4. Both are running as the app pool identity and have identical settings. Each contains a virtual directory of a network share. To access the share, a username and password are used to connect. The .NET 2.0 web app connects just fine. However, the .NET 4 web app generates an error stating the following:
Exception information:
Exception type: System.Configuration.ConfigurationErrorsException
Exception message: An error occurred loading a configuration file: Failed to start monitoring changes to '\\share' because access is denied. (\\share\web.config)
Inner exception information (level 1):
Exception type: System.Web.HttpException
Exception message: Failed to start monitoring changes to '\\share' because access is denied.
Why would this work for one and not the other?
The permissions are correct: