I am using ASP.Net and have my connector configured for "aspx". I am getting the error "The server didn't send back a proper XML response" when I hit the "Browse Server" button. I am using FCKEditor_2.6.3 and FCKeditor.Net_2.6.3. My web site does use Master Pages.
Here is my web.config settings:
The permissions are set correctly on ~/images/UserFiles/
This is how my connector.aspx is set:
My fckconfig.js is set like:
I have tried getting this going for two days and could use some help!
Here is my web.config settings:
<add key="FCKeditor:BasePath" value="~/fckeditor/"/> <add key="FCKeditor:UserFilesPath" value="~/images/UserFiles/"/> <add key="FCKeditor:AutoCompleteAlsoluteURL" value="1"/>
The permissions are set correctly on ~/images/UserFiles/
This is how my connector.aspx is set:
<%@ Page language="C#" Trace="false" Inherits="FredCK.FCKeditorV2.FileBrowser.Connector" AutoEventWireup="false" ValidateRequest="false" Theme="" %>
My fckconfig.js is set like:
var _FileBrowserLanguage = 'aspx' ; // asp | aspx | cfm | lasso | perl | php | py var _QuickUploadLanguage = 'aspx' ; // asp | aspx | cfm | lasso | perl | php | py
I have tried getting this going for two days and could use some help!
Re: Browse Server, ASP.Net
If you search on Browse Server you will see how common this issue is and that it has nothing to do with specific environments. I get it with classic asp, it also appears with php, cold fusion and .net.
No one seems to have a definitive answer best i have managed to find is that it has something to do with your directory permissions.
Although i have managed to upload files to my upload directory using the image upload part of the same FCK dialog. I just cant get it to read dir folder contents !!
Someone with some real knowledge of FCKEditor code needs to gather together all the common threads on this one and address.
Good Luck
Re: Browse Server, ASP.Net
This is one thing I don't understand. This is the requested URL and I'm not going to type the whole thing:
.../aspx/connector.aspx?Command=GetFoldersAndFiles&Type=Image&CurrentFolder=%2F&uuid=1228176352356
In the above URL CurrentFolder=%2F = CurrentFolder=/ If my UserFilesPath is set to ~/images/UserFiles/, what exactly does "/" mean in the CurrentFolder? Is "/" relative to ~/images/UserFiles/ or just what?
Please, someone, come up with a way to fix this problem for me and everyone out there! And because I have followed too many false leads on a fix to this, please only respond if you have actually fixed this problem or know for sure of a fix.
Re: Browse Server, ASP.Net
the only solution I found is to set in config files: "php" connector
Usualy asp.net hosting providers also install php framework on servers so the asp.net could use php to upload files in fckeditor...
this might be a temporary solution though
Re: Browse Server, ASP.Net
When I type the connector.aspx URL directly into the browser I get back an error about HEAD not being in the HTML (which it is). and also errors about CSS which relates to the Master Page Theme or possibly the FCKEditor Theme.
Can anyone give me any leads on fixing what I just described?
Re: Browse Server, ASP.Net
I finally confirmed this. I set a breakpoint in Global.asax in the Application_Error event. Here is the result:
{"Exception of type 'System.Web.HttpUnhandledException' was thrown."}
[System.Web.HttpUnhandledException]: {"Exception of type 'System.Web.HttpUnhandledException' was thrown."}
Data: {System.Collections.ListDictionaryInternal}
HelpLink: null
InnerException: {"Using themed css files requires a header control on the page. (e.g. <head runat=\"server\" />)."}
Message: "Exception of type 'System.Web.HttpUnhandledException' was thrown."
Source: "System.Web"
StackTrace: " at System.Web.UI.Page.HandleError(Exception e)\r\n at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)\r\n at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)\r\n at System.Web.UI.Page.ProcessRequest()\r\n at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)\r\n at System.Web.UI.Page.ProcessRequest(HttpContext context)\r\n at ASP.fckeditor_editor_filemanager_connectors_aspx_connector_aspx.ProcessRequest(HttpContext context) in c:\\Windows\\Microsoft.NET\\Framework\\v2.0.50727\\Temporary ASP.NET Files\\commerce.web\\9efa09db\\d273bcf4\\App_Web_9b3dd_zy.0.cs:line 0\r\n at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()\r\n at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)"
TargetSite: {Boolean HandleError(System.Exception)}
Re: Browse Server, ASP.Net
var FCKConfig = oEditor.FCKConfig ;
var FCKDebug = oEditor.FCKDebug ;
var FCKTools = oEditor.FCKTools ;
Feel free to jump in and offer a suggestion on how to fix this.
Re: Browse Server, ASP.Net
Re: Browse Server, ASP.Net
Hi,
try this:
- check this page to test any error:
http:// ... /fckeditor/editor/filemanager/connectors/test.html
- choose options and simulate the request
- probably you recive this error (the real error):
- it's true, config.ascx file under "\editor\filemanager\connectors\aspx\config.ascx" don't contain any declaration for head server side tag. Then add <head runat="server" /> before a <script> tag and check if now work the "server browse".
bye,
Brago
Re: Browse Server, ASP.Net
I have the browse server button working but I'm not sure where it is pulling the info from since the files that I have uploaded are not showing up anywhere under my site and I can't see any of the files I've copied to the folders manually. I do have the upload image working w/o error on my dev machine but not on the test server. Althought, like I side, I'm not sure where it is sending the files since I can't find them.
EDIT:
Finally! Got it working. The problem I was having with browse button was fixed by using the following line in the config.ascx
and leaving UserFilesAbsolutePath empty.
This also fixed the upload problem on the test server I was having. I'll bookmark the page and check back for questions but hopefully this helps others.
EDIT 2:
In case anyone cares I'm using asp.net mvc with the jquery plugin for FCKeditor since I can't directly use the FCKeditor control in mvc.
Re: Browse Server, ASP.Net
but i am getting error on server while uploading image
error is..
The server didn't send back a proper XML response. Please contact your system administrator.
XML request error: Found (302)
Requested URL:
/FCKeditor/editor/filemanager/connectors/aspx/connector.aspx?Command=GetFoldersAndFiles&Type=Image&CurrentFolder=%2F&uuid=1232723528410
Response text:
i am using asp.net 2.0 with c#
please help me to solve it
Thanks & regards
Jack
Re: Browse Server, ASP.Net
but i am getting error on server while uploading image
error is..
The server didn't send back a proper XML response. Please contact your system administrator.
XML request error: Found (302)
Requested URL:
/FCKeditor/editor/filemanager/connectors/aspx/connector.aspx?Command=GetFoldersAndFiles&Type=Image&CurrentFolder=%2F&uuid=1232723528410
Response text:
i am using asp.net 2.0 with c#
please help me to solve it
Thanks & regards
Jack
Re: Browse Server, ASP.Net
Did you see this topic Browse Server Solved ?
Note also the fact that you must go to your server and set write permission on the folder.
HTH,
Dennis
Re: Browse Server, ASP.Net
Can somebuddy plis help...
Your help will be appreciated
Thankx