IIS7 Error Message

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    IIS7 Error Message

    Hello,

    Today morning when I tried to access my IIS on the server it gave me below error message. Can yo please please help me solve this issue, the server is 2008 with IIS 7 .

    =========================
    There was an error when trying to connect . Do you want to retype your credentials and try again?
    Details:
    \\?\C:\Windows\system32\inetsrv\config\application Host.config’
    line number ’1'.
    The error message is: ‘Configuration file is not well-formed XML’
    ==========================
    Regards,
    Robin_X

    #2
    Re: IIS7 Error Message

    Hello Robin_X,

    The IIS7 is showing the above error because of applicationhost.config file is corrupted.

    When you check inside C:\Windows\system32\inetserv\config\ folder you noticed that applicationhost.config file size is 0 KB.

    IIS7 keeps the history of the applicationHost.config file every time when you made any changes in IIS7.

    To access the history of the applicationHost.config file, Follow the below steps.

    1. Navigate to C:\inetpub\history directory
    2. Inside this directory you will find the history of all the applicationHost.config file.
    3. Rename the original corrupted applicationHost.config file.
    4. Copy the latest applicationHost.config file that you know is not corrupted from history folder and paste it into the C:\Windows\system32\inetsrv\config directory
    5. Now attempt to access IIS7. This time IIS7 should open, and you should be able to access all your websites.

    Regards,
    Antonie J.

    Comment


      #3
      Re: IIS7 Error Message

      Hello Antonie J,

      Thank you for your quick solution.

      I have managed to fix the issue with the steps provided.

      Regards,
      Robin

      Comment

      Working...
      X