Message: The remote server returned an error: (403) Forbidden on Azure App Service

Massimo Della Calce asked on September 20, 2021 12:58


I am getting the following error in the Kentico Event log in the Kentico 12 ADMIN site:

Message: The remote server returned an error: (403) Forbidden.

Exception type: System.Net.WebException Stack trace: at System.Net.WebClient.DownloadDataInternal(Uri address, WebRequest& request) at System.Net.WebClient.DownloadString(Uri address) at System.Net.WebClient.DownloadString(String address) at CMS.Scheduler.SchedulingHelper.RunSchedulerRequest(String url)


Consider I hosted the ADMIN instance as an App Service on Azure

Recent Answers

David te Kloese answered on September 20, 2021 16:25


I assume you're hosting Admin and live site on different Azure instances? Would you by any chance have IP restriction on the Admin side enabled?

Event though the eventlog shows different I've seen this issue happen cause the web app wasn't allowing requests from it's own IP. The eventlog shows your own IP but creates a seperated request using it's own IP.

You can find the IP's on the properties tab of the AppService:

App service properties

2 votesVote for this answer Mark as a Correct answer

Massimo Della Calce answered on September 22, 2021 18:50

Hi, the ADMIN Web App's virtual IP is present in outgoing IP addresses. The only IP restrictions are configured in the inbound rules. Are you referring to these?

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.