Accessing Network Share Generates "Failed to start monitoring changes to '\\share' because access is denied."

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:

alt text


I had to enable ASP.NET Impersonation for the files to be accessible. I'm not sure why that's the case, but it's enabled now and working.

Need Your Help

Set InkCanvas.InkPresenter Binding

c# data-binding windows-10 uwp

I have a class called DataModel where I am storing all information about my app's state. In there I have a property called DeviceInput, typed as CoreInputDeviceTypes. That is where I am holding the...

jquery different values in function

javascript jquery function

i would like to set two different values for width and height according of window width, and put them into function. I try to write: