@Farhat Mehmood We understand you are encountering a 500 error when deploying your site.
Please note that this error is generic and can occur for a number of reasons. Some suggestions to try to see if they resolve the issue:
- Delete the deployment folder on your web app. This has worked in the past for others. You can do this by going to sitename.scm.azurewebsites.net and navigating to your folder structure and delete the deployment folder. Then attempt your deployment again.
- Navigate to where webappname is the name of the web app. https://webappname.scm.azurewebsites.net/api/vfs/LogFiles/kudu/trace and review the logs to see if there are any further detailed errors. There could be a number of items here such as your settings.xml file having a leftover key from a previous deployment method, etc. This would tell you here.
- Have deployments worked before on this web app? If so, and you are not attached to the web app then you might want to consider trying a new web app as a last resort.
Please let us know the outcome of the above suggestions. We hope they help you resolve the issue.