This article deals with the problem with running the automatic scheduled tasks, mostly for the e-mail sending. You may see several exceptions logged in the Event log and also that the e-mails are not sent from the e-mail queue (resend e-mails is working fine).
The exceptions logged are mostly telling something like “Unable to connect to the remote server” or “Page not found (404)” and it is related to
/CMSPages/scheduler.aspx page.
The problem is that the scheduler is using the domain name from “Site Domain name” setting in
Site Manager -> Sites -> edit your site -> General tab. This is set without “www”.
You need to ensure that the web site is accessible with and without “www” in the domain name. you can check it by logging directly to the server (e.g. using Remote Desktop) and try to browse your site. The server needs to see itself.
You can also disable the domain name correction - truncating the "www" in this file
\CMSSiteManager\Sites\Site_Edit_General.aspx.cs in method
SaveSite by commenting out this line:
TextBoxDomainName.Text = CorrectDomainName(TextBoxDomainName.Text);
But after this you need to add to the domain alias the domain name without www.
The problem may be also caused if you are using internal/external IPs. You have set the external IP as a Site Domain name and then the scheduler is not able to access it internally. So you may need to switch the site domain name and domain alias.
See also:
Applies to:
Kentico CMS 4.x
Created on
4/24/2009 5:59:16 AM in
API and Internals