Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi,
I have set one page to run as interval of 120 min. I have set its physical URL like : http://www.test.com/umbraco/Dialogs/Custom/CustomPublish1.aspx
Now, when scheduler is trying to run schedule, it is giving below error in log file.
ERROR umbraco.presentation.publishingService - [Thread 34] Error sending url request for scheduled task
System.Net.WebException: The remote server returned an error: (404) Not Found.
at System.Net.HttpWebRequest.GetResponse()
at umbraco.presentation.publishingService.GetTaskByHttp(String url)
Now, when i try to browse my URL, it is properly working without error. What can be issue?
Thanks,Dhiren
Can you post your scheduler config?
And also is the page available on the url you configured. Does it run when you call it your self from the browser ?
Dave
Yes it runs when i call it from browser.
umbracoSettings.config file
<scheduledTasks>
<!-- add tasks that should be called with an interval (seconds) -->
<task log="true" alias="scheduleUpdateTask" interval="300" url="http://dev-project/umbraco/Dialogs/Custom/CustomPublish1.aspx"/>
</scheduledTasks>
Config seems okay to me. Maybe the problem is in your code.
Can you place a debug breakpoint to see if it get's hit by the scheduler.
After many trials, i solved issue by calling my URL using ip address instead of domain. I don't know why it happens but it resolves my issue when i use IP Address instead of domain.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Scheduler not working in Load Balancing environment
Hi,
I have set one page to run as interval of 120 min. I have set its physical URL like : http://www.test.com/umbraco/Dialogs/Custom/CustomPublish1.aspx
Now, when scheduler is trying to run schedule, it is giving below error in log file.
ERROR umbraco.presentation.publishingService - [Thread 34] Error sending url request for scheduled task
System.Net.WebException: The remote server returned an error: (404) Not Found.
at System.Net.HttpWebRequest.GetResponse()
at umbraco.presentation.publishingService.GetTaskByHttp(String url)
Now, when i try to browse my URL, it is properly working without error. What can be issue?
Thanks,
Dhiren
Can you post your scheduler config?
And also is the page available on the url you configured. Does it run when you call it your self from the browser ?
Dave
Yes it runs when i call it from browser.
umbracoSettings.config file
<scheduledTasks>
<!-- add tasks that should be called with an interval (seconds) -->
<task log="true" alias="scheduleUpdateTask" interval="300" url="http://dev-project/umbraco/Dialogs/Custom/CustomPublish1.aspx"/>
</scheduledTasks>
Thanks,
Dhiren
Config seems okay to me. Maybe the problem is in your code.
Can you place a debug breakpoint to see if it get's hit by the scheduler.
Dave
Hi,
After many trials, i solved issue by calling my URL using ip address instead of domain. I don't know why it happens but it resolves my issue when i use IP Address instead of domain.
Thanks,
Dhiren
is working on a reply...