Showing posts with label IIS 8 error on windows server 2012 insufficient permission. Show all posts
Showing posts with label IIS 8 error on windows server 2012 insufficient permission. Show all posts

Tuesday, December 25, 2018

IIS, There was an error when trying to connect. Do you want to retype your credentials and try again?

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

screenshot:

Solution:

Steps to short out this issue:

  1. go to C:\Windows\Microsoft.Net\Framework64\v2.0.50727\CONFIG\machine.config
  2. 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 />

  3. This will resolve the issue.
if you have missed your configuration in IIS then please follow the following steps:
  1. Open the IIS server and open the shared configuration, please check the below screenshots:
     

     
  2. 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"> 
  3. 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"> 
  4. Then go to Shared configuration and export the configuration 
  5. after this again change the machine.config configurationredirection  tag to

    <configurationRedirection />
  6. Now again import the Configuration from the Shared configuration from the Shared configuration in IIS.
This will also fix the IIS settings.