首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Umbraco中的"Publish at“不起作用(401错误)

Umbraco中的"Publish at“不起作用(401错误)
EN

Stack Overflow用户
提问于 2016-08-16 15:17:21
回答 1查看 859关注 0票数 1

发布位置功能不起作用-项目只是永远保持未发布状态。

日志中有两个以某种方式联系在一起的错误--都是401错误。

我试图启用对文件夹Umbraco/Webservices的匿名身份验证,但无济于事。经过几个小时的阅读,我找不到任何解决方案。

代码语言:javascript
复制
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)

-

代码语言:javascript
复制
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()
EN

回答 1

Stack Overflow用户

发布于 2016-08-23 19:10:53

在scheduledTask节点的/Config/umbracoSettings.config中,将基本url设置为您的网站的路径/scheduledTask/,如下所示:

代码语言:javascript
复制
<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

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/38968751

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档