Installing fckeditor with ASP.NET 2.0

Posted on 2008-11-07
Last Modified: 2013-11-26
I am having trouble installing fckeditor with ASP.NET 2 in a Visual Studio 2005 project.  I think I followed the directions, but I am coming up with "ERROR 404 -  Not Found" when I debug the project. The steps I took are:

1.  Copied the dll file (FredCK.FCKeditorV2.dll) to the Bin directory and added a reference to it.
2.  Added the folder FCKeditor (with contents to the project).  
3.  Created a new page using the code listed in the snippet

What am I doing wrong?  My guess is that I am not placing the folder "FCKeditor" in the correct manner.  If someone could please assist me as soon as possible, that would be nice.

<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>


<FCKeditorV2:FCKeditor ID="FCKeditor1" runat="server"> </FCKeditorV2:FCKeditor>

Open in new window

Question by:jjrr007
    LVL 22

    Accepted Solution

    You need to specify FCKEditor's basepath in your code.
    In your page load, add something like this:
    FCKeditor1.BasePath =
    Request.ApplicationPath & "/UserControls/FCKeditor/"
    I assume you placed FCKeditor folder under "UserControls" folder, if not, change it to match your folder structure.
    LVL 1

    Author Comment

    Thanks for your time.  I made the change and received an error saying:
    Compiler Error Message: CS0019: Operator '&' cannot be applied to operands of type 'string' and 'string'

    I have attached the entire C# code (It is only one page in this project) in the snippet below.  I think you would have the code too, but I have attached it in the snippet.  I am not sure what to change. What do you suggest?

    using System;
    using System.Data;
    using System.Configuration;
    using System.Collections;
    using System.Web;
    using System.Web.Security;
    using System.Web.UI;
    using System.Web.UI.WebControls;
    using System.Web.UI.WebControls.WebParts;
    using System.Web.UI.HtmlControls;
    public partial class _Default : System.Web.UI.Page
        protected void Page_Load(object sender, EventArgs e)
            FCKeditor1.BasePath = Request.ApplicationPath & "/fckeditor/";
    ***ASP.NET code is below***
    <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
    <%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
    <html xmlns="" >
    <head runat="server">
        <title>Untitled Page</title>
        <form id="form1" runat="server">
            <FCKeditorV2:FCKeditor ID="FCKeditor1" runat="server">

    Open in new window

    LVL 22

    Expert Comment

    I used VB.NET in my sample, and you are using C#. So change "&" to "+" for th e string concatenation in C#.
    LVL 1

    Author Comment

    That worked perfectly.  I apologize for the delay.  I needed to leave the office at 5 PM last Friday and I don't work on Saturday or Sunday.  
    LVL 1

    Author Closing Comment

    Thanks for your expertise.
    LVL 22

    Expert Comment

    >>>I needed to leave the office at 5 PM last Friday and I don't work on Saturday or Sunday.  
    I need to do that too, but I find myself some excuse to get on-line for some time during weekends, and my wife does not like it. :-)

    Featured Post

    Why You Should Analyze Threat Actor TTPs

    After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

    Join & Write a Comment

    In my previous two articles we discussed Binary Serialization ( and XML Serialization ( In this article we will try to know more about SOAP (Simple Object Acces…
    For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK ( for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now