发布位置功能不起作用-项目只是永远保持未发布状态。
日志中有两个以某种方式联系在一起的错误--都是401错误。
我试图启用对文件夹Umbraco/Webservices的匿名身份验证,但无济于事。经过几个小时的阅读,我找不到任何解决方案。
Error in ping. The base URL used in the request was: ***, 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: (401) Unauthorized.
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)-
An error occurred with the scheduled publishing. The base url used in the request was: ***, 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: (401) Unauthorized.
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.PerformRun()发布于 2016-08-23 19:10:53
在scheduledTask节点的/Config/umbracoSettings.config中,将基本url设置为您的网站的路径/scheduledTask/,如下所示:
<scheduledTasks baseUrl="www.yoursite.com/umbraco/">
<!-- add tasks that should be called with an interval (seconds) -->
<!-- <task log="true" alias="test60" interval="60" url="http://localhost/umbraco/test.aspx"/>-->
</scheduledTasks>来自umbraco documentation
baseUrl:(v6.2.5 & v7.1.9+)这是可选的,只有在检测不到基本URL时才应该使用。如果您的主机设置有一些特殊的代理设置,则可能会发生这种情况。有关更多详细信息,请参阅本期:http://issues.umbraco.org/issue/U4-5391
https://stackoverflow.com/questions/38968751
复制相似问题