Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot read configuration file due to insufficient permissions

I am trying to test my Web Service on an IIS instance on my local machine before I promote to a windows server 2008 environment. I get this when I attempt to browse to the service. I have created a custom application pool that this service will run under btw. So I am guessing that that application ID does not have permissions to access that folder etc... I get this little detail btw...

"This error occurs when there is a problem reading the configuration file for the Web server or Web application. In some cases, the event logs may contain more information about what caused this error."

I am thinking I need to give that application identity permissions, but I am unsure how to accomplish this.

Is there another way to get this done?

like image 259
SoftwareSavant Avatar asked Feb 01 '12 17:02

SoftwareSavant


People also ask

How to fix cannot read configuration file due to insufficient permissions?

Go to the parent folder, right-click and select Properties. Select the Security tab, edit the permissions and Add. Click on Advanced and the Find Now. Select IIS_IUSRS and click OK and OK again.

Is was not able to process configuration for the Web site or application?

Things you can try: Ensure that the NTFS permissions for the web. config file are correct and allow access to the Web server's machine account. Check the event logs to see if any additional information was logged. Verify the permissions for the DLL.

Where is redirection config located?

redirection. config is a file that lives in the IIS configuration directory, typically %SystemRoot%\System32\inetsrv\config .


8 Answers

Not sure whether this is too late for you.

The IIS website is run by either USERS or IIS_IUSRS.

Try to do following:

  • From Windows Explorer
  • Right click on the folder pointed by the web
  • Go to security tab
  • Add computername\IIS_IUSRS or computername\USERS with Read permission.
like image 179
Qinjie Avatar answered Oct 11 '22 21:10

Qinjie


1.Open IIS 2.On left side panel click on application pools 3.And go to its properties and change identity value from "ApplicationPoolIdentity" to "Local System".

I resolved the problem when i tried this.

like image 26
Sudha Avatar answered Oct 11 '22 20:10

Sudha


I faced a similar issue on Windows 8.1. I fixed it by changing identity value from ApplicationPoolIdentity to Local System.

like image 37
Marizu Avatar answered Oct 11 '22 19:10

Marizu


Check your sites Security -> Authentication feature. If anonymousAuthentication is enabled, click on the Edit link (in the Actions column) to see which identity is being used; if it is IUSR, make sure IUSR has FileSystem ACL privileges on the website's folder and files. If it set to 'ApplicationPoolIdentity' make sure group IIS_IUSRS has the same rights, because the 'ApplicationPoolIdentity' is dynamically added to the IIS_IUSRS group at runtime.

like image 26
Marvin Avatar answered Oct 11 '22 19:10

Marvin


Modifying the application's identity setting from "ApplicationPoolIdentity" to "LocalSystem" on IIS(7) solved my issue. when adding permission to the IIS_IUSRS did not. I don't quite understand why though.

like image 20
Halima Avatar answered Oct 11 '22 21:10

Halima


For me, I just transferred my files under c:\inetpub\wwwroot and the error is gone.

like image 31
Angela T Avatar answered Oct 11 '22 21:10

Angela T


All I had to do was edit permissions for the virtual directory(application) in IIS 7.5 and add IUSR to the permissions. That fixed it.

like image 24
user580735 Avatar answered Oct 11 '22 20:10

user580735


If you chosen old version of .Net framework in application pool of IIS may sometimes cause this issue. So Try with higher .net framework version.

like image 40
ijas Mohammed Avatar answered Oct 11 '22 20:10

ijas Mohammed