System.Net.WebException: The remote server returned an error: (404) Not Found.
at System.Net.WebClient.UploadDataInternal(Uri address, String method, Byte[] data, WebRequest& request)
at System.Net.WebClient.UploadString(Uri address, String method, String data)
at Umbraco.Web.Scheduling.ScheduledPublishing.Run()
The issue seems to be that my site has an IIS rewrite rule that forces https, but the base url used for this request is http. I know I can change the baseUrl, i.e. <scheduledTasks baseUrl="OptionalCustomBaseUrl.com/umbraco/">
But I cannot set the protocol there. If I try using baseUrl="https://www.mydomain.com/umbraco/" I still get the ScheduledPublishing error, only now it says "The base url used in the request was: http://https://www.mydomain.com/umbraco/".
why i am getting follwoing error when trying to host my site in window serevr 2012 , where the same sollution is working fine in my local system
2015-05-08 03:25:44,239 [30] ERROR Umbraco.Web.Scheduling.ScheduledPublishing - [Thread 99] An error occurred with the scheduled publishing. The base url used in the request was: http://172.28.0.169:80/umbraco/, see http://our.umbraco.org/documentation/Using-Umbraco/Config-files/umbracoSettings/#ScheduledTasks documentation for details on setting a baseUrl if this is in error System.NullReferenceException: Object reference not set to an instance of an object. at Umbraco.Web.Mvc.AdminTokenAuthorizeAttribute.GetAuthHeaderTokenVal(ApplicationContext appContext) at Umbraco.Web.Scheduling.ScheduledPublishing.Run()
2015-05-08 03:26:21,927 [30] INFO Umbraco.Core.UmbracoApplicationBase - [Thread 102] Application shutdown. Reason: ConfigurationChange 2015-05-08 03:26:46,443 [103] INFO Umbraco.Core.PluginManager - [Thread 108] Determining hash of code files on disk 2015-05-08 03:26:46,456 [103] INFO Umbraco.Core.PluginManager - [Thread 108] Hash determined (took 4ms) 2015-05-08 03:26:46,474 [103] INFO Umbraco.Core.PluginManager - [Thread 108] Starting resolution types of umbraco.interfaces.IApplicationStartupHandler 2015-05-08 03:26:46,493 [103] INFO Umbraco.Core.PluginManager - [Thread 108] Completed resolution of types of umbraco.interfaces.IApplicationStartupHandler, found 37 (took 18ms) 2015-05-08 03:26:46,630 [103] INFO Umbraco.Core.PluginManager - [Thread 108] Starting resolution types of Umbraco.Core.PropertyEditors.IPropertyEditorValueConverter 2015-05-08 03:26:46,631 [103] INFO Umbraco.Core.PluginManager - [Thread 108] Completed resolution of types of Umbraco.Core.PropertyEditors.IPropertyEditorValueConverter, found 0 (took 0ms) 2015-05-08 03:26:46,631 [103] INFO Umbraco.Core.PluginManager - [Thread 108] Starting resolution types of Umbraco.Core.PropertyEditors.IPropertyValueConverter 2015-05-08 03:26:46,632 [103] INFO Umbraco.Core.PluginManager - [Thread 108] Completed resolution of types of Umbraco.Core.PropertyEditors.IPropertyValueConverter, found 16 (took 1ms) 2015-05-08 03:26:46,647 [103] INFO Umbraco.Core.PluginManager - [Thread 108] Starting resolution types of Umbraco.Web.Mvc.SurfaceController 2015-05-08 03:26:46,648 [103] INFO Umbraco.Core.PluginManager - [Thread 108] Completed resolution of types of Umbraco.Web.Mvc.SurfaceController, found 5 (took 1ms) 2015-05-08 03:26:46,648 [103] INFO Umbraco.Core.PluginManager - [Thread 108] Starting resolution types of Umbraco.Web.WebApi.UmbracoApiController 2015-05-08 03:26:46,652 [103] INFO Umbraco.Core.PluginManager - [Thread 108] Completed resolution of types of Umbraco.Web.WebApi.UmbracoApiController, found 35 (took 3ms) 2015-05-08 03:26:46,704 [103] INFO Umbraco.Core.PluginManager - [Thread 108] Starting resolution types of Umbraco.Core.Media.IThumbnailProvider 2015-05-08 03:26:46,705 [103] INFO Umbraco.Core.PluginManager - [Thread 108] Completed resolution of types of Umbraco.Core.Media.IThumbnailProvider, found 3 (took 0ms) 2015-05-08 03:26:46,705 [103] INFO Umbraco.Core.PluginManager - [Thread 108] Starting resolution types of Umbraco.Core.Media.IImageUrlProvider 2015-05-08 03:26:46,706 [103] INFO Umbraco.Core.PluginManager - [Thread 108] Completed resolution of types of Umbraco.Core.Media.IImageUrlProvider, found 1 (took 0ms) 2015-05-08 03:26:48,214 [103] INFO Umbraco.Web.Search.ExamineEvents - [Thread 108] Initializing Examine and binding to business logic events 2015-05-08 03:26:48,391 [103] INFO Umbraco.Web.Search.ExamineEvents - [Thread 108] Adding examine event handlers for index providers: 3 2015-05-08 03:26:48,982 [103] INFO Umbraco.Web.UmbracoModule - [Thread 102] Setting OriginalRequestUrl: 172.28.0.169:80/umbraco 2015-05-08 03:26:49,138 [103] INFO umbraco.content - [Thread 102] Loading content from disk cache... 2015-05-08 03:26:49,146 [103] WARN Umbraco.Web.UmbracoModule - [Thread 102] Umbraco has no content 2015-05-08 03:26:54,805 [103] INFO Umbraco.Core.PluginManager - [Thread 104] Starting resolution types of Umbraco.Core.PropertyEditors.IParameterEditor 2015-05-08 03:26:54,807 [103] INFO Umbraco.Core.PluginManager - [Thread 104] Completed resolution of types of Umbraco.Core.PropertyEditors.IParameterEditor, found 44 (took 1ms) 2015-05-08 03:26:59,059 [103] INFO Umbraco.Core.PluginManager - [Thread 106] Starting resolution types of Umbraco.Core.Persistence.Mappers.BaseMapper 2015-05-08 03:26:59,060 [103] INFO Umbraco.Core.PluginManager - [Thread 106] Completed resolution of types of Umbraco.Core.Persistence.Mappers.BaseMapper, found 23 (took 1ms)
Just have to add this to the thread that this did fix it - "scheduledTasks baseUrl="https://www.mydomain.com/umbraco" in umbracoSettings.config" however, you must not put the https:// in there. Only have the www.mydomain.com (replace with the domain that Umbraco is on) and that should fix the log files. It worked for all our sites. Hope it helps.
Failed (at "www.mydomain.com/umbraco").
System.InvalidOperationException: An invalid request URI was provided. The request URI must either be an absolute URI or BaseAddress must be set.
at System.Net.Http.HttpClient.PrepareRequestMessage(HttpRequestMessage request)
at System.Net.Http.HttpClient.SendAsync(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationToken cancellationToken)
at System.Net.Http.HttpClient.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
at Umbraco.Web.Scheduling.ScheduledPublishing.<PerformRunAsync>d__9.MoveNext()
I am getting below error is there any solution for this , currently i am using umbraco 6.2.5 version
ERROR Umbraco.Web.Scheduling.ScheduledPublishing - [Thread 94] An error occurred with the scheduled publishing. The base url used in the request was: https://localhost:90/umbraco/, see http://our.umbraco.org/documentation/Using-Umbraco/Config-files/umbracoSettings/#ScheduledTasks documentation for details on setting a baseUrl if this is in error
System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: An attempt was made to access a socket in a way forbidden by its access permissions 127.9.0.5:90
at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception)
--- End of inner exception stack trace ---
at System.Net.WebClient.UploadDataInternal(Uri address, String method, Byte[] data, WebRequest& request)
at System.Net.WebClient.UploadString(Uri address, String method, String data)
at System.Net.WebClient.UploadString(String address, String data)
at Umbraco.Web.Scheduling.ScheduledPublishing.Run()
ScheduledPublishing error with https site
Hello,
I've noticed an issue with "Publish At" never publishing my item. I am using Umbraco 7.2.2 on Windows Server 2008 R2/IIS7.5. The log reports this:
2015-03-03 11:11:04,278 [44] ERROR Umbraco.Web.Scheduling.ScheduledPublishing - [Thread 36] An error occurred with the scheduled publishing. The base url used in the request was: http://www.mydomain.com/umbraco/, see http://our.umbraco.org/documentation/Using-Umbraco/Config-files/umbracoSettings/#ScheduledTasks documentation for details on setting a baseUrl if this is in error
System.Net.WebException: The remote server returned an error: (404) Not Found.
at System.Net.WebClient.UploadDataInternal(Uri address, String method, Byte[] data, WebRequest& request)
at System.Net.WebClient.UploadString(Uri address, String method, String data)
at Umbraco.Web.Scheduling.ScheduledPublishing.Run()
The issue seems to be that my site has an IIS rewrite rule that forces https, but the base url used for this request is http. I know I can change the baseUrl, i.e. <scheduledTasks baseUrl="OptionalCustomBaseUrl.com/umbraco/">
But I cannot set the protocol there. If I try using baseUrl="https://www.mydomain.com/umbraco/" I still get the ScheduledPublishing error, only now it says "The base url used in the request was: http://https://www.mydomain.com/umbraco/".
Can the baseUrl be made so that I can set https?
Yes, from my understanding the logic evaluates the umbracoUseSSL setting in web.config, and then will use the correct protocal for baseUrl.
Thanks so much, that was just what I needed!
Hi there,
I got umbracoUseSSL = "true" in my web.config
and
scheduledTasks baseUrl="https://www.mydomain.com/umbraco" in umbracoSettings.config
and the following errors still appear:
2015-05-08 14:50:39,257 [79] ERROR Umbraco.Web.Scheduling.ScheduledPublishing - [Thread 25] An error occurred with the scheduled publishing
System.Net.WebException: The remote name could not be resolved: 'https'
at System.Net.WebClient.UploadDataInternal(Uri address, String method, Byte[] data, WebRequest& request)
at System.Net.WebClient.UploadString(Uri address, String method, String data)
at Umbraco.Web.Scheduling.ScheduledPublishing.Run()
2015-05-08 14:50:39,257 [79] ERROR Umbraco.Web.Scheduling.KeepAlive - [Thread 15] Error in ping
System.Net.WebException: The remote name could not be resolved: 'https'
at System.Net.WebClient.DownloadDataInternal(Uri address, WebRequest& request)
at System.Net.WebClient.DownloadString(Uri address)
at Umbraco.Web.Scheduling.KeepAlive.Start(ApplicationContext appContext, IUmbracoSettingsSection settings)
I am using Umbraco 7.2.1. I don't have any scheduled task that I need to run. Just trying to follow the steps above.
I am also not using load balancing.
Does anybody have a suggestion?
Many Thanks,
Gus
Gus I have the exact situation, usiing 7.2.4.
I get the same error
when umbracoUseSSL = "true" in my web.config
and
scheduledTasks baseUrl="https://www.mydomain.com/umbraco" in umbracoSettings.config
Did you find a solution?
hi there ,
why i am getting follwoing error when trying to host my site in window serevr 2012 , where the same sollution is working fine in my local system
2015-05-08 03:25:44,239 [30] ERROR Umbraco.Web.Scheduling.ScheduledPublishing - [Thread 99] An error occurred with the scheduled publishing. The base url used in the request was: http://172.28.0.169:80/umbraco/, see http://our.umbraco.org/documentation/Using-Umbraco/Config-files/umbracoSettings/#ScheduledTasks documentation for details on setting a baseUrl if this is in error
System.NullReferenceException: Object reference not set to an instance of an object.
at Umbraco.Web.Mvc.AdminTokenAuthorizeAttribute.GetAuthHeaderTokenVal(ApplicationContext appContext)
at Umbraco.Web.Scheduling.ScheduledPublishing.Run()
2015-05-08 03:26:21,927 [30] INFO Umbraco.Core.UmbracoApplicationBase - [Thread 102] Application shutdown. Reason: ConfigurationChange
2015-05-08 03:26:46,443 [103] INFO Umbraco.Core.PluginManager - [Thread 108] Determining hash of code files on disk
2015-05-08 03:26:46,456 [103] INFO Umbraco.Core.PluginManager - [Thread 108] Hash determined (took 4ms)
2015-05-08 03:26:46,474 [103] INFO Umbraco.Core.PluginManager - [Thread 108] Starting resolution types of umbraco.interfaces.IApplicationStartupHandler
2015-05-08 03:26:46,493 [103] INFO Umbraco.Core.PluginManager - [Thread 108] Completed resolution of types of umbraco.interfaces.IApplicationStartupHandler, found 37 (took 18ms)
2015-05-08 03:26:46,630 [103] INFO Umbraco.Core.PluginManager - [Thread 108] Starting resolution types of Umbraco.Core.PropertyEditors.IPropertyEditorValueConverter
2015-05-08 03:26:46,631 [103] INFO Umbraco.Core.PluginManager - [Thread 108] Completed resolution of types of Umbraco.Core.PropertyEditors.IPropertyEditorValueConverter, found 0 (took 0ms)
2015-05-08 03:26:46,631 [103] INFO Umbraco.Core.PluginManager - [Thread 108] Starting resolution types of Umbraco.Core.PropertyEditors.IPropertyValueConverter
2015-05-08 03:26:46,632 [103] INFO Umbraco.Core.PluginManager - [Thread 108] Completed resolution of types of Umbraco.Core.PropertyEditors.IPropertyValueConverter, found 16 (took 1ms)
2015-05-08 03:26:46,647 [103] INFO Umbraco.Core.PluginManager - [Thread 108] Starting resolution types of Umbraco.Web.Mvc.SurfaceController
2015-05-08 03:26:46,648 [103] INFO Umbraco.Core.PluginManager - [Thread 108] Completed resolution of types of Umbraco.Web.Mvc.SurfaceController, found 5 (took 1ms)
2015-05-08 03:26:46,648 [103] INFO Umbraco.Core.PluginManager - [Thread 108] Starting resolution types of Umbraco.Web.WebApi.UmbracoApiController
2015-05-08 03:26:46,652 [103] INFO Umbraco.Core.PluginManager - [Thread 108] Completed resolution of types of Umbraco.Web.WebApi.UmbracoApiController, found 35 (took 3ms)
2015-05-08 03:26:46,704 [103] INFO Umbraco.Core.PluginManager - [Thread 108] Starting resolution types of Umbraco.Core.Media.IThumbnailProvider
2015-05-08 03:26:46,705 [103] INFO Umbraco.Core.PluginManager - [Thread 108] Completed resolution of types of Umbraco.Core.Media.IThumbnailProvider, found 3 (took 0ms)
2015-05-08 03:26:46,705 [103] INFO Umbraco.Core.PluginManager - [Thread 108] Starting resolution types of Umbraco.Core.Media.IImageUrlProvider
2015-05-08 03:26:46,706 [103] INFO Umbraco.Core.PluginManager - [Thread 108] Completed resolution of types of Umbraco.Core.Media.IImageUrlProvider, found 1 (took 0ms)
2015-05-08 03:26:48,214 [103] INFO Umbraco.Web.Search.ExamineEvents - [Thread 108] Initializing Examine and binding to business logic events
2015-05-08 03:26:48,391 [103] INFO Umbraco.Web.Search.ExamineEvents - [Thread 108] Adding examine event handlers for index providers: 3
2015-05-08 03:26:48,982 [103] INFO Umbraco.Web.UmbracoModule - [Thread 102] Setting OriginalRequestUrl: 172.28.0.169:80/umbraco
2015-05-08 03:26:49,138 [103] INFO umbraco.content - [Thread 102] Loading content from disk cache...
2015-05-08 03:26:49,146 [103] WARN Umbraco.Web.UmbracoModule - [Thread 102] Umbraco has no content
2015-05-08 03:26:54,805 [103] INFO Umbraco.Core.PluginManager - [Thread 104] Starting resolution types of Umbraco.Core.PropertyEditors.IParameterEditor
2015-05-08 03:26:54,807 [103] INFO Umbraco.Core.PluginManager - [Thread 104] Completed resolution of types of Umbraco.Core.PropertyEditors.IParameterEditor, found 44 (took 1ms)
2015-05-08 03:26:59,059 [103] INFO Umbraco.Core.PluginManager - [Thread 106] Starting resolution types of Umbraco.Core.Persistence.Mappers.BaseMapper
2015-05-08 03:26:59,060 [103] INFO Umbraco.Core.PluginManager - [Thread 106] Completed resolution of types of Umbraco.Core.Persistence.Mappers.BaseMapper, found 23 (took 1ms)
can somebody please help?
that was my fault , i didnt have data on my live server database :( fixed
We had this problem and it seemed to work after we changed the Application Pool identity to Network Service.
Just have to add this to the thread that this did fix it - "scheduledTasks baseUrl="https://www.mydomain.com/umbraco" in umbracoSettings.config" however, you must not put the https:// in there. Only have the www.mydomain.com (replace with the domain that Umbraco is on) and that should fix the log files. It worked for all our sites. Hope it helps.
@Wade
Your solution is not working for me
I'm getting the following error
Hi,
I am getting below error is there any solution for this , currently i am using umbraco 6.2.5 version
ERROR Umbraco.Web.Scheduling.ScheduledPublishing - [Thread 94] An error occurred with the scheduled publishing. The base url used in the request was: https://localhost:90/umbraco/, see http://our.umbraco.org/documentation/Using-Umbraco/Config-files/umbracoSettings/#ScheduledTasks documentation for details on setting a baseUrl if this is in error System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: An attempt was made to access a socket in a way forbidden by its access permissions 127.9.0.5:90 at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception) --- End of inner exception stack trace --- at System.Net.WebClient.UploadDataInternal(Uri address, String method, Byte[] data, WebRequest& request) at System.Net.WebClient.UploadString(Uri address, String method, String data) at System.Net.WebClient.UploadString(String address, String data) at Umbraco.Web.Scheduling.ScheduledPublishing.Run()
is working on a reply...