Package server can't publish HTTP/HTTPS codebases and Task Server not working: IIS service is not starting.
search cancel

Package server can't publish HTTP/HTTPS codebases and Task Server not working: IIS service is not starting.

book

Article ID: 224535

calendar_today

Updated On:

Products

IT Management Suite

Issue/Introduction

Package servers are only publishing software releases in UNC. When checking IIS Manager, it showed the error: 

 

IIS service was stopped and failed to start:

 

Environment

Release: 8.x

 

Cause

 ApplicationHost.Config in 'Windows\system32\inetsrv\config\applicationHost.config'  was corrupted (Size was 0KB)

Resolution

Check the following in case you need to replace a corrupt file:

Replace the file (make a copy of the original file) with the backup from 'C:\inetpub\history' and restarted the IIS.

1.  Browse to C:\inetpub\history directory
2.  Inside this directory you will find some folders which are the history of all the applicationHost.config file.
3.  Open one of them (Preferably the newest one or the one you know is not corrupted) and pick an applicationHost.config file. 
4.  Copy the applicationHost.config file and paste it into the C:\Windows\system32\inetsrv\config directory, replacing the corrupted file.
5.  Now attempt to access IIS Manager again and start the service.