You are currently viewing the BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
Whilst creating a new article I decided to add an image for the first time. Clicking on the "Browse Server" button the FCKeditor:Resource Browser opened followed by the following error:
"XML Request Error: Internal Server Error (500)"
I had a look on the FCKeditor website and the only relevant reason provided for this error was that if (in asp.net) you are using themes, a web.config files must be created in the FCK... directory with <pages theme=""/>
I tried this but it made no difference. After lots of frustration I removed the virtual directory and files, cleared down the web servers cached files and did a fresh installation.
This resolved the issue and I soon found that the cause of this error was due to moving the css files from the css folder into the CMS themes folder. This is something I wanted to do so that I could keep my css and skin files together and eventually create a number of themes.
It seems the issue is with putting the .css files in the themes folder - so you should be able to replicate this error.
Im at a loss as to why this is happening as I cannot see how moving these files has anything to do with the FCK control.
quote:Im at a loss as to why this is happening as I cannot see how moving these files has anything to do with the FCK control.
Neither do I.... Usually when I get the Internal Server Error (500), it's related to security.
So the account used by the web server may not allowed to create folders inside the FCKeditor base folder, or it isn't allowed yo save files locally..... Check the permissions on the UserFiles folder....
I can't see that it has anything to do with the Userfiles folder. I have given the ASP.NET machine account modify rights on the FCKeditor, Userfiles, App_Data and even App_Themes folder but still get the issue.
It seems very simple to replicate. If I create a test.css file in the App_Themes/Cms folder, I am unable to browse the server for files and get the error 500. If I move test.css up a level into the root of App_Themes, I do not get the error.
Does the FCKeditor look at the themes folder at all? This is very confusing.
I upgraded to the new version of FCKeditor just to see if this would fix the issue.
It didn't but whilst configuring the new version I remembered their point about using themes.
As the theme is set in the web.config file and the FCK editor uses .css files for its own formatting, I think it must have been trying to use the .css files I had created in the themes folder.
Therefore added Theme="" in the page declaration for FCKeditor\editor\filemanager\upload\aspx\upload.as px and the same in FCKeditor\editor\filemanager\browser\default\conne ctors\aspx\connector.aspx and it all works perfectly.
Was quite frustrating but I have learnt alot about configuring the editor in the process. Every cloud has a silver lining....