If there is something wrong with the IIS config file (applicationHost.config), IIS Manager may crash with this error message:
There was an error while performing this operation. Unexpected end of file has occurred.
To find solution to this issue, pay close attention to the error message. It tells you which line number (Line 1026) in which file (applicationHost.config) has the issue. It also tells what the issue is (modules, system.webServer, location, configuration elements are not closed).
In my case, the file was actually cut off at the line 1026. Thinking about the issue history (It started occurring after building this server from a virtual machine disk copy), I guess that something went wrong during the disk copy.
Here are a few steps to try for solving this kind of an issue:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.