C# &引用;刊登于;在翁布拉科';t工作(401错误)

C# &引用;刊登于;在翁布拉科';t工作(401错误),c#,.net,umbraco,publishing,unauthorized,C#,.net,Umbraco,Publishing,Unauthorized,“在发布时发布”功能不起作用-项目只是永远保持未发布状态 日志中有两个错误以某种方式连接在一起-都是401错误 我尝试对文件夹Umbraco/Webservices启用匿名身份验证,但没有帮助。经过几个小时的阅读,我找不到任何解决办法 Error in ping. The base URL used in the request was: ***, see http://our.umbraco.org/documentation/Using-Umbraco/Config-files/umbrac

“在发布时发布”功能不起作用-项目只是永远保持未发布状态

日志中有两个错误以某种方式连接在一起-都是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)
-


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

<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>

来自翁布拉科


baseUrl
:(v6.2.5和v7.1.9+)这是可选的,仅当无法检测到基本URL时才应使用。如果您的主机设置有一些特殊的代理设置,则可能会发生这种情况。有关详细信息,请参阅本期:

此设置从7.2.7开始已过时,请改用umbraco应用程序URL
<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>