I have been spending days searching how to make the FCKEditor file browser works with asp.net. Here are the steps I have been through to make it behave normally.
Set-up :
FCKeditor 2.2
I am using IIS
IIS root folder is : C:\inetpub\wwwroot
The website folder is : C:\notrefutur
The website address is : http://localhost/notrefutur/Default.aspx
FCKEditor files : C:\inetpub\wwwroot\FCKeditor
IIS is configured with an ASPNET user, anonymous access
In my default.aspx I have the following inserted in my HTML :
At the beginning :
<%@ Register TagPrefix="FCKeditorV2" Namespace="FredCK.FCKeditorV2" Assembly="FredCK.FCKeditorV2" %>
Where I want FCKeditor :
<form runat="server">
<FCKeditorV2:FCKeditor id="FCKeditor1" runat="server"></FCKeditorV2:FCKeditor>
</form>
What to do :
Put FredCK.FCKeditorV2.dll (from the asp.net FCKEditor zip file) C:\notrefutur\bin
Put FredCK.FCKeditorV2.dll (from the asp.net FCKEditor zip file) C:\inetpub\wwwroot\bin
Open C:\inetpub\wwwroot\FCKeditor\fckconfig.js
Change
var _FileBrowserLanguage = 'asp' ; // asp | aspx | cfm | lasso | perl | php | py
var _QuickUploadLanguage = 'asp' ; // asp | aspx | cfm | lasso | php
to
var _FileBrowserLanguage = 'aspx' ; // asp | aspx | cfm | lasso | perl | php | py
var _QuickUploadLanguage = 'aspx' ; // asp | aspx | cfm | lasso | php
Create the folder C:\inetpub\wwwroot\userfiles and GRANT ASPNET user (IIS user) the FULL rights on that folder
Here the uploader should be working and by default choose the C:\inetpub\wwwroot\userfiles location to put the files
Change the default location :
To change the default upload location create the file C:\inetpub\wwwroot\Web.config :
<?xml version="1.0"?>
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
<appSettings>
<add key="FCKeditor:UserFilesPath" value="/userfiles1/" />
</appSettings>
</configuration>
Hope this helps
Regards
Camille