This blog explains a specific error encountered on a CORS enabled site hosted on an IIS server, the reason for the error and how to resolve it.
Pre-requisites:
The Error:
HTTP Error 500.19 - Internal Server Error. The Requested page cannot be accessed because the related configuration data for the page is invalid.
Troubleshooting Steps
- According to the error message, it mentions that the configuration data is invalid. To investigate further, opened the configuration file mentioned under the "Config file path" and checked whether the configuration file is corrupted or contains any incorrect values. Verified that the configuration file is correct and valid
- Opened the IIS Manager and navigated to the site. Tried to open the URL rewrite feature or any other IIS site feature, error was displayed instead of opening the expected configuration window. Based on this observation, assumed the issue may be related to the IIS configuration.
- Checked the installed IIS modules and identified that the IIS CORS module is not installed on the server.
- Installed the IIS CORS module and restarted the IIS Manager. Verified that the site is accessible and no longer giving the 500.19 error
This blog explains an error occurred with a CORS enabled site hosted on IIS and the actions taken to troubleshoot it.
No comments:
Post a Comment