2016-08-16 40 views
1

功能上的發佈不起作用 - 這些項目會永遠保持未發佈狀態。「在Umbraco中發佈」不起作用(401錯誤)

日誌中有兩個連接錯誤 - 都是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() 

回答

1

在基本URL設置爲你的網站/一把umbraco的路徑/,這樣scheduledTask節點/Config/umbracoSettings.config

<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 +)This是可選的,並且只能在基本URL不能被檢測到的情況下使用。如果您的主機設置有一些特殊的代理設置,可能會發生這種情況請參閱此問題以獲取更多詳細信息:http://issues.umbraco.org/issue/U4-5391

+1

此設置從7.2.7開始已過時,請改用umbracoApplicationUrl – okenshield