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

Alberto Fernandez asked on August 22, 2016 17:23

Hi,

I am getting the following error constantly in the Kentico Event log:

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.DownloadData(Uri address) at CMS.Scheduler.SchedulingHelper.RunSchedulerRequest(String url)

REQUESTED URL: http://wfh.webmock.com/CMSPages/scheduler.aspx

Thank you.

Recent Answers


Trevor Fayas answered on August 22, 2016 17:29

That is the page that is pinged at the end of every requests to run any scheduled tasks that need to run.

I would check to see if there is a setting in your hosting environment that would prevent that page from being hit.

0 votesVote for this answer Mark as a Correct answer

Alberto Fernandez answered on August 22, 2016 17:32

Hi Trevor,

Thank you for your prompt response. I have tried to reach that URL within the hosting server and it worked fine. Which settings do you think might be causing this?

Thank you.

0 votesVote for this answer Mark as a Correct answer

Trevor Fayas answered on August 22, 2016 17:35

I would check your IIS permissions. IIS sites have an Application Pool that is the actual processor/memory that run the site. These requests run as this Application Pool. When you set up Kentico, you will want to Edit all the file permissions and give full control to the Application Pool user.

This will be done differnetly though depending on your hosting environment...who are you hosting through? or is it on a server you have access to the IIS?

0 votesVote for this answer Mark as a Correct answer

Alberto Fernandez answered on August 22, 2016 17:37

Yes I have access to the server and the IIS tool. The server runs on Windows Server 2012 R2

0 votesVote for this answer Mark as a Correct answer

Trevor Fayas answered on August 22, 2016 19:58

Okay, here's the instructions (from Stack Overflow for ease)

If you application pool is named "DefaultAppPool" (just replace this text below if it is named differently)

  1. Open Windows Explorer
  2. Select the CMS directory.
  3. Right click the file and select "Properties"
  4. Select the "Security" tab
  5. Click the "Edit" and then "Add" button
  6. Click the "Locations" button and make sure you select the local machine. (Not the Windows domain if the server belongs to one.)
  7. Enter "IIS AppPool\DefaultAppPool" in the "Enter the object names to select:" text box. (Don't forget to change "DefaultAppPool" here to whatever you named your application pool.)
  8. Click the "Check Names" button and click "OK".
  9. Once the app pool is on the list, give it full permission, then hit okay.
0 votesVote for this answer Mark as a Correct answer

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