We are sorry to hear you're facing this issue. Can you please give us more details about what you were trying to achieve before you got this error?
There are two separate issues happening here.
- The first one (warning CS0162: Unreachable code detected):
The warning message means that you have some code in your file "Account.cs" that is unreachable, meaning it will never be executed. To fix this warning, you need to locate the line number mentioned in the warning (116,9,116,15) and examine the code in that range.
- The second error message (The attempt to publish the ZIP file through 'https://oneid.scm.azurewebsites.net/api/zipdeploy' failed with HTTP status code 'Unauthorized')
This error is due to a permission issue. It basically means that the deployment failed because the user account that you are using to publish the ZIP file does not have the necessary permissions to deploy to the specified Azure Web App.
you can fix this error by making sure the user account that you are using to publish the ZIP file has the necessary permissions to deploy to the Azure Web App. You can do this by checking the deployment credentials for the Azure Web App in the Azure portal and ensuring that the user account that you are using has the necessary permissions.
Hope that helps. please let us know if you have further questions