Installing fckeditor with ASP.NET 2.0

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

Who is Participating?
prairiedogConnect With a Mentor Commented:
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.
jjrr007Author Commented:
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

I used VB.NET in my sample, and you are using C#. So change "&" to "+" for th e string concatenation in C#.
Cloud Class® Course: SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

jjrr007Author Commented:
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.  
jjrr007Author Commented:
Thanks for your expertise.
>>>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. :-)
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.