IIS 8 error on windows server 2012 insufficient permission
There was an error when trying to connect. Do you want to retype your credentials and try again?
Details:
Filename: \?\C:Windows\system32\inetsrv\config\redirection.config Error: Cannot read configuration file due to insufficient permissions
Details:
Filename: \?\C:Windows\system32\inetsrv\config\redirection.config Error: Cannot read configuration file due to insufficient permissions
screenshot:
Solution:
Steps to short out this issue:
- go to C:\Windows\Microsoft.Net\Framework64\v2.0.50727\CONFIG\machine.config
- here you got the redirection tag like the below
<configurationredirection enabled="true" password="[enc:IISCngProvider:X0ObCWwZ4+PrTHiFVPtzFeCcL8u5P6KUOYfo1/0QrgZWATA5pKWqHvD8nL2crNJKyyqr4z/rBdLPjdRcaLxAMMj4l+lvp5EXXKSXueolvyGa34F4QZfbBVCM6oVNcq3M368TOTVjJv4POVFQWvu0MDVlGgReglXB+Lw5BRI4Htw=:enc]" path="C:\Windows\System32\inetsrv\config\import\" username="Administrator"> </configurationredirection"></li">
you need to change this to
<configurationRedirection />
- This will resolve the issue.
- Open the IIS server and open the shared configuration, please check the below screenshots:
- please check the "Enable Shared Configuration" and select the path specified in the your configurationredirection (please check with yelow backgound)
<configurationredirection enabled="true" password="[enc:IISCngProvider:X0ObCWwZ4+PrTHiFVPtzFeCcL8u5P6KUOYfo1/0QrgZWATA5pKWqHvD8nL2crNJKyyqr4z/rBdLPjdRcaLxAMMj4l+lvp5EXXKSXueolvyGa34F4QZfbBVCM6oVNcq3M368TOTVjJv4POVFQWvu0MDVlGgReglXB+Lw5BRI4Htw=:enc]" path="C:\Windows\System32\inetsrv\config\import\" username="Administrator"> </configurationredirection"></li"> - Then go to the machine.config file and revert the configurationredirection to previous setup that is
<configurationredirection enabled="true" password="[enc:IISCngProvider:X0ObCWwZ4+PrTHiFVPtzFeCcL8u5P6KUOYfo1/0QrgZWATA5pKWqHvD8nL2crNJKyyqr4z/rBdLPjdRcaLxAMMj4l+lvp5EXXKSXueolvyGa34F4QZfbBVCM6oVNcq3M368TOTVjJv4POVFQWvu0MDVlGgReglXB+Lw5BRI4Htw=:enc]" path="C:\Windows\System32\inetsrv\config\import\" username="Administrator"> </configurationredirection"></li"> - Then go to Shared configuration and export the configuration
- after this again change the machine.config configurationredirection tag to
<configurationRedirection /> - Now again import the Configuration from the Shared configuration from the Shared configuration in IIS.
This will also fix the IIS settings.