Troubleshooting common hosting issues
In this section, we will look into some of the common problems that you can face while hosting a Blazor application.
Navigate to Control Panel >> Programs and Features >> Turn Windows feature on or off. Then navigate to Internet Information Services >> World Wide Web Services >> Common HTTP Features and uncheck the “WebDAV Publishing” option and click ok. Refer to the image below,
- If you are unable to open the website and get a DNS not found error
- HTTP Error 500.19 – Internal Server Error - The requested page cannot be accessed because the related configuration data for the page is invalid.
- If the website is loading but data is not getting populated and you get a 500 Internal server error
- If the data is not getting populated and you get an “operation not allowed” exception
Navigate to Control Panel >> Programs and Features >> Turn Windows feature on or off. Then navigate to Internet Information Services >> World Wide Web Services >> Common HTTP Features and uncheck the “WebDAV Publishing” option and click ok. Refer to the image below,
- “Failed to load <web API> : No 'Access-Control-Allow-Origin' header is present on the requested resource.
Please refer to Microsoft documents on Enable Cross-Origin Requests (CORS) in ASP.NET Core .
- If you republish the application then do not forget to refresh your website as well as the application pool in IIS.
Comments
Post a Comment