Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | 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 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 .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #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

Reply With Quote
  #2 (permalink)  
Old January 31st, 2007, 03:21 AM
Imar's Avatar
Wrox Author
Points: 67,572, Level: 100
Points: 67,572, Level: 100 Points: 67,572, Level: 100 Points: 67,572, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 16,266
Thanks: 66
Thanked 1,428 Times in 1,408 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.
Reply With Quote
  #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.

Reply With Quote
  #4 (permalink)  
Old January 31st, 2007, 08:33 AM
Imar's Avatar
Wrox Author
Points: 67,572, Level: 100
Points: 67,572, Level: 100 Points: 67,572, Level: 100 Points: 67,572, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 16,266
Thanks: 66
Thanked 1,428 Times in 1,408 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.
Reply With Quote
  #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....

Reply With Quote
  #6 (permalink)  
Old January 31st, 2007, 01:23 PM
Imar's Avatar
Wrox Author
Points: 67,572, Level: 100
Points: 67,572, Level: 100 Points: 67,572, Level: 100 Points: 67,572, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 16,266
Thanks: 66
Thanked 1,428 Times in 1,408 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.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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 05:41 AM
Wrox CMS in2minds BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 1 October 15th, 2008 05: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 01: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



All times are GMT -4. The time now is 08:05 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.