Thank you for your presence here!
You do not have permission to view this directory or page.
When Azure encounters an error while running your web app, error message
- First, ensure that your web app's WAR file has been correctly unpacked inside the "webapps" folder. To verify this, go to the SCM (KUDU) interface. If your web URL is "xyz.azurewebsites.net," try opening "xyz.scm.azurewebsites.net."
- In the KUDU interface, select the "Debug Console" from the available tabs and then choose "CMD" from the drop-down menu. This will provide you with access to the folder structure. Navigate to "site" -> "wwwroot" -> "webapps" to check if your WAR file has been unpacked.
- Also try restarting the web app.
- Additionally, ensure that your startup file (e.g., "index.html") is added to the default documents section. You can do this by going to the azure portal> your web app> settings>configuration> "Default documents" tab and adding the name of your main file (usually "index.html") if it's not already there.
- Also,If you have IP restrictions configured in your IIS settings, check your Web.config file. Make sure to add your IP address to the security section, as shown below:
<security>
<ipSecurity allowUnlisted="false">
<clear />
<add ipAddress="192.168.250.70" allowed="true" />
</ipSecurity>
</security>
You can remove this section if you don't want to restrict any IP addresses.
- For detailed error messages, you can enable Azure diagnostics logging during troubleshooting and disable it when your web app is ready for production. Follow these steps:
- Log in to Azure, navigate to "App Services" in the left-side menu, select your web app, and locate "App Service logs" (use the search box if needed). Turn on "Detailed Error Messages" or enable all the logging options, depending on your preference.
- Add the following lines to your Web.config file:
<customErrors mode="Off" /> <!-- Add this before </system.web> -->
<httpErrors errorMode="Detailed"></httpErrors> <!-- Add this before </system.webServer> -->
- Make sure to upload the updated Web.config file to Azure.
- By following these steps correctly, you can access detailed error messages and, hopefully, identify the root cause of the issue.
- For more information on enabling diagnostics logging for web apps in Azure App Service, please refer to the documentation link- https://learn.microsoft.com/en-us/azure/app-service/troubleshoot-diagnostic-logs
Let us know if further query or issue remains.