2008-12-26 89 views
2

我在使用FCKEditor時,當單擊「瀏覽服務器」按鈕時會引發以下錯誤。服務器沒有發回正確的XML響應

The server didn't send back a proper XML response. Please contact your system administrator.

XML Request error: Not Found(404)

Requested URL:

/fckeditor/editor/filemanager/connectors/asp/connector.asp?Command=....

我正在使用.NET開發和測試我的IIS7網站。

回答

0

使用FireBug,檢查服務器向您發送的響應。

您可以通過在點擊「瀏覽服務器」按鈕後檢查控制檯選項卡來完成此操作。

這樣,您就可以看到從服務器接收到的是什麼內容,因此您可以對其進行調試。

+0

一個正確的版本,當我使用螢火看到輸入反應。它具有「HTTP錯誤404.3 - 未找到,由於擴展配置,無法提供您請求的頁面,如果該頁面是腳本,請添加處理程序,如果要下載文件,請添加MIME映射。」我想我自己,是IIS配置錯誤? – Samnang 2008-12-26 09:02:50

0

這意味着要麼不進行URI映射,要麼丟失文件。它試圖訪問某個URI,但無法找到它(404狀態碼)。

您確定您的安裝/配置是否完整正確?

2

我會想象你需要確保你已經配置FCK使用ASPX FileBrowserLanguage和QuickUploadLanguage而不是asp。

我有這一套在CustomFckConfig.js文件,而不是修改核心FckConfig.js文件:

// The following value defines which File Browser connector and Quick Upload 
// "uploader" to use. It is valid for the default implementaion and it is here 
// just to make this configuration file cleaner. 
// It is not possible to change this value using an external file or even 
// inline when creating the editor instance. In that cases you must set the 
// values of LinkBrowserURL, ImageBrowserURL and so on. 
// Custom implementations should just ignore it. 
var _FileBrowserLanguage = 'aspx' ; // asp | aspx | cfm | lasso | perl | php | py 
var _QuickUploadLanguage = 'aspx' ; // asp | aspx | cfm | lasso | perl | php | py 

我無法想象,IIS7被配置服務的.asp頁,這些天 - 它不適合.aspx嗎?看到你標記這個問題的asp.net,我假設你的網站的其餘部分運行在.Net。

0

除了Zhaph的評論,請檢查服務器編碼,並確保與您的FCKEditor配置jive。

1

我們在我們的網站上建立.net 3.5並且在IIS7上託管了同樣的問題。 我找到了幫助我們的解決方案。我們更改了fckeditor(small fix)的源代碼並將response filter屬性設置爲null。錯誤與asp.net中服務器響應的壓縮有關。 文章幫助我們找到了HERE。 我希望它也能幫助你。

最好的問候,

+0

爲我工作......謝謝 – 2010-10-11 09:55:19

1

已經通過--a很長的步行走,我可能add--了很多建議的解決方案,但從來沒有發現一個能解決我的問題。

我一直在得到同樣的迴應:

The server didn't send back a proper XML response. Please contact your system administrator.

XML request error: OK (200)

Requested URL: https:.../fckeditor/editor/filemanager/connectors/aspx/connector.aspx?Command=GetFoldersAndFiles&Type=Image&CurrentFolder=%2F&uuid=1260177467559

Response text: window.location.replace("http:.../fckeditor/editor/filemanager/connectors/aspx/connector.aspx?Command=GetFoldersAndFiles&Type=Image&CurrentFolder=%2F&uuid=1260177467559

直到最後,我走近,再讀取響應再次注意到請求和響應都使用不同的協議。

僅供參考,編輯器僅在網站管理員可以訪問的網站的安全部分實施。我們使用自動切換HTTP/HTTPS請求的Ventaur component

圖像 - 我們只需要上傳/瀏覽器圖像類型 - 駐留在也配置爲使用HTTPS的子目錄中。

這給了我一個問題來自何處的指示,所以我繼續設置fckeditor目錄以使用HTTPS。

這終於奏效了,我能夠上傳/瀏覽圖片。

0

確保您fckeditor.dll是Bin文件夾 的道路上,並確保你有它