Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6
This is the forum to discuss the Wrox book ASP.NET 2.0 Instant Results by Imar Spaanjaars, Paul Wilton, Shawn Livermore; ISBN: 9780471749516
Welcome to the p2p.wrox.com Forums.

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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old January 30th, 2007, 06:06 PM
Authorized User
 
Join Date: Jan 2007
Location: , , .
Posts: 72
Thanks: 0
Thanked 0 Times in 0 Posts
Default Wrox CMS

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.

Any help would be appreciated

Many thanks
RV

  #2 (permalink)  
Old January 31st, 2007, 03:21 AM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Quote:
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....

HtH,

Imar
---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.
  #3 (permalink)  
Old January 31st, 2007, 08:11 AM
Authorized User
 
Join Date: Jan 2007
Location: , , .
Posts: 72
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.

  #4 (permalink)  
Old January 31st, 2007, 08:33 AM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

I have no idea....

It was only a wild guess; the only times I got the XML 500 error was due to security permissions. I never had any problems with themes and the FCKeditor.

Are you using the latest version of the editor?

Imar
---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.
  #5 (permalink)  
Old January 31st, 2007, 01:05 PM
Authorized User
 
Join Date: Jan 2007
Location: , , .
Posts: 72
Thanks: 0
Thanked 0 Times in 0 Posts
Default

All sorted :)

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

  #6 (permalink)  
Old January 31st, 2007, 01:23 PM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Great. Glad it's working now...

Imar
---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.


Similar Threads
Thread Thread Starter Forum Replies Last Post
C# Wrox CMS Code jminatel BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 5 June 3rd, 2009 04:41 AM
Wrox CMS in2minds BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 1 October 15th, 2008 04:14 PM
Wrox CMS - Altering the menu controls Eriskyne BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 3 October 15th, 2007 12:34 PM
Wrox CMS in C# .Netster BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 10 February 26th, 2007 04:56 PM
Wrox CMS Deletions retroviz BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 9 February 3rd, 2007 04:55 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.