+1 vote
110 views
in Windows by
Today, I restarted the server for a maintenance purpose, but after the same, the app stops working,it giving the error HTTP Error 503. The service is unavailable.

I found the below error in the logs
 

The worker process for application pool 'DefaultAppPool' encountered an error 'Cannot read configuration file

' trying to read configuration data from file '\\?\<EMPTY>', line number '0'.  The data field contains the error code.
 

Please help

2 Answers

0 votes
by

This error message typically indicates that the worker process for the "DefaultAppPool" application pool in Internet Information Services (IIS) is having trouble reading the configuration file for the application.

There are several possible causes for this error, including:

  1. The configuration file for the application pool may be missing or corrupted. You can try restoring the file from a backup, or reinstalling the application if necessary.

  2. The permissions on the configuration file may be incorrect, preventing the worker process from reading it. Make sure that the worker process has read access to the file and its parent directory.

  3. The file path specified in the configuration may be incorrect or incomplete. Double-check that the file path is correct and that the file exists at that location.

  4. There may be a problem with the IIS configuration itself. Try restarting the IIS service or resetting the application pool to see if that resolves the issue.

  5. If the file path contains a UNC path (such as "\server\share\file"), make sure that the worker process account has sufficient permissions to access the share.

  6. Finally, check the Event Viewer for any additional error messages or information that may help diagnose the issue.

Once you have identified and resolved the underlying cause of the error, the worker process should be able to read the configuration file and your application should function normally.

+1 vote
by
1. Remove the content from C:\inetpub\temp\apppools
2. Restart the server
 

This should work
...