I've mentioned previously this wizard in other threads, but there were some extra things that I wanted to add before announcing it in a more official way.
Now I think that it can help most of the people wanting to use the asp version to do it quickly and with some extra hints after everything is working in order to get more security. So even if you think that you have CKFinder working and everything is OK, I think that it can be useful to give this script a try to find out what it tells you.
The steps would be
- Download CKFinder (the ASP version)
- Install it in your server
- Now it's where the wizard kicks in:
wizard for CKFinder 2.6
wizard for CKFinder 2.3.1
wizard.zip for CKFinder 2.3
wizard.zip for CKFinder 2.2
(download it from the attachment, this is always the latest version). - Extract its content on your ckfinder folder, and load the default.html file in your browser.
- The scripts will run and they will tell you anything that you must change to get everything perfect.
- When you have finished, delete the wizard folder.
The script has been able to fix all the problems that I've been told so far, but if you get any unexpected error, then please send me a PM with the info so I can try to understand what's going on and generate a proper explanation about the problem and how to fix it.
If you have any suggestion about other tests that could be added or how to improve anything in this script just reply to this message.
Of course, I'm also interested to know if the scripts have been useful to you.
Re: Helper script for CKFinder - Asp version
Hi,
thanks for the wizard script. I ran it and solved every error, but the following:
The file has failed.
Requested URL: assets/ckfinder.aspx?what=tempfolder&nocache=Thu Nov 05 2009 13:46:53 GMT+0000 (GMT Standard Time)
Returned status: 500
Returned text: <html> <head> <title>Access to the path 'C:\WINDOWS\TEMP\testFile.txt' is denied.</title> <style> body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;} p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px} b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px} H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red } H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon } pre {font-family:"Lucida Console";font-size: .9em} .marker {font-weight: bold; color: black;text-decoration: none;} .version {color: gray;} .error {margin-bottom: 10px;} .expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; } </style> </head> <body bgcolor="white"> <span><H1>Server Error in '/' Application.<hr width=100% size=1 color=silver></H1> <h2> <i>Access to the path 'C:\WINDOWS\TEMP\testFile.txt' is denied.</i> </h2></span> <font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif "> <b> Description: </b>An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. <br><br> <b> Exception Details: </b>System.UnauthorizedAccessException: Access to the path 'C:\WINDOWS\TEMP\testFile.txt' is denied. <br><br>ASP.NET is not authorized to access the requested resource. Consider granting access rights to the resource to the ASP.NET request identity. ASP.NET has a base process identity (typically {MACHINE}\ASPNET on IIS 5 or Network Service on IIS 6) that is used if the application is not impersonating. If the application is impersonating via <identity impersonate="true"/>, the identity will be the anonymous user (typically IUSR_MACHINENAME) or the authenticated request user. <br><br>To grant ASP.NET access to a file, right-click the file in Explorer, choose "Properties" and select the Security tab. Click "Add" to add the appropriate user or group. Highlight the ASP.NET account, and check the boxes for the desired access.<br><br> <b>Source Error:</b> <br><br> <table width=100% bgcolor="#ffffcc"> <tr> <td> <code><pre> Line 100: } Line 101: <font color=red>Line 102: System.IO.File.Delete(testFile) ; </font>Line 103: Line 104: }</pre></code> </td> </tr> </table> <br> <b> Source File: </b> \\pdc1\sites\d\derbycathedral.org\public_html\admin\ckfinder\wizard\assets\ckfinder.aspx<b> Line: </b> 102 <br><br> <b>Stack Trace:</b> <br><br> <table width=100% bgcolor="#ffffcc"> <tr> <td> <code><pre> [UnauthorizedAccessException: Access to the path 'C:\WINDOWS\TEMP\testFile.txt' is denied.] System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +7714255 System.IO.File.Delete(String path) +7574888 ASP.admin_ckfinder_wizard_assets_ckfinder_aspx.ValidateWritableFolder(String folderPath, String okMessage) in \\pdc1\sites\d\derbycathedral.org\public_html\admin\ckfinder\wizard\assets\ckfinder.aspx:102 ASP.admin_ckfinder_wizard_assets_ckfinder_aspx.OnLoad(EventArgs e) in \\pdc1\sites\d\derbycathedral.org\public_html\admin\ckfinder\wizard\assets\ckfinder.aspx:145 System.Web.UI.Control.LoadRecursive() +50 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627 </pre></code> </td> </tr> </table> <br> <hr width=100% size=1 color=silver> <b>Version Information:</b> Microsoft .NET Framework Version:2.0.50727.3603; ASP.NET Version:2.0.50727.3082 </font> </body> </html> <!-- [UnauthorizedAccessException]: Access to the path 'C:\WINDOWS\TEMP\testFile.txt' is denied. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.File.Delete(String path) at ASP.admin_ckfinder_wizard_assets_ckfinder_aspx.ValidateWritableFolder(String folderPath, String okMessage) in \\pdc1\sites\d\derbycathedral.org\public_html\admin\ckfinder\wizard\assets\ckfinder.aspx:line 102 at ASP.admin_ckfinder_wizard_assets_ckfinder_aspx.OnLoad(EventArgs e) in \\pdc1\sites\d\derbycathedral.org\public_html\admin\ckfinder\wizard\assets\ckfinder.aspx:line 145 at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) [HttpUnhandledException]: Exception of type 'System.Web.HttpUnhandledException' was thrown. at System.Web.UI.Page.HandleError(Exception e) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest() at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) at System.Web.UI.Page.ProcessRequest(HttpContext context) at ASP.admin_ckfinder_wizard_assets_ckfinder_aspx.ProcessRequest(HttpContext context) in c:\WINDOWS\microsoft.net\Framework\v2.0.50727\Temporary ASP.NET Files\root\da1eb84d\58ed8daa\App_Web_fvnnr1an.0.cs:line 0 at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) --><!-- This error page might contain sensitive information because ASP.NET is configured to show verbose error messages using <customErrors mode="Off"/>. Consider using <customErrors mode="On"/> or <customErrors mode="RemoteOnly"/> in production environments.-->
Returned xml: [object XMLDocument]
My web host won't grant permissions to that folder. Is there a way round this?>
I can't currently 'browse' thumbnails etc, though I can upload
Re: Helper script for CKFinder - Asp version
You can workaround the problem by using the CKFinderTempPath variable in the config.asp and putting the same value in the provided web.config file. There are some comments there explaining how to use it.
Anyway, I'm gonna try to update the first post with an adjusted wizard that will try to work also in your situation, you can try it to check if now it works for you and it does suggest you the modification that I've explained.
Re: Helper script for CKFinder - Asp version
I've followed the instructions and ran the wizard, after adjusting the security settings, setting up a temporary directory etc, the wizard runs, with no errors but stops after test 22 (i.e. 22 out of 37)
I'm still getting a error when uploading an image "It was not possible to complete the request. (Error Error returned in call to Asp.Net)"
Also, I'm not sure I really understand what CKFINDER should be showing when I view my images directory. This directory is already populated with images, and I get a list of thumbnails, but they are all showing a question mark.
If I download the image they are correct.
Any ideas?
Regards and thanks
Pete
Re: Helper script for CKFinder - Asp version
if the asp.net part is configured properly then you should see the thumbnails just like the demo site instead of question marks.
Re: Helper script for CKFinder - Asp version
Regards
Pete
Re: Helper script for CKFinder - Asp version
That way you can send me any information without risking your privacy.
Re: Helper script for CKFinder - Asp version
I try to install CKFinder with CKeditor, but i have some errors like : Unable to find an image manipulation component. I download the wizard script ans solve some errors.
But for some, I don't know what to do.
The asp.net test file failed.
Requested URL: assets/hello.aspx?nocache=Thu Aug 05 2010 12:13:49 GMT+0200
Returned status: 302
Returned text:
Returned xml: [object XMLDocument]
Returned headers:
Date: Thu, 05 Aug 2010 10:14:02 GMT
Server: Microsoft-IIS/6.0
MicrosoftOfficeWebServer: 5.0_Pub
X-Powered-By: ASP.NET
Content-Type: text/html
X-UA-Compatible: IE=EmulateIE7
Location: default.aspx
Content-Length: 133
Cache-Control: private
Maybe because my server execute only .asp3 files and not .net files.
Someone can help me please. Thanks.
Re: Helper script for CKFinder - Asp version
In the response it shows that it has asp.net installed, but I don't know if there's some restriction in your configuration to use .aspx pages
Re: Helper script for CKFinder - Asp version
All of your web site are on ASP3. Is there any issue to prevent .net test ? And finally see why when i launch CKFinder i got the error message.
Re: Helper script for CKFinder - Asp version
Of course that means that no image manipulation will be done by CKFinder, but you won't get the warning message.
Re: Helper script for CKFinder - Asp version
I think that tests on asp.net could be to circumvent.
Now i get this error :
An error was returned in the call to initialize the connector. Requested URL: ../core/connector/asp/connector.asp?command=Init&nocache=Thu Aug 05 2010 15:27:14 GMT+0200
Returned status: 200
Returned text: <?xml version="1.0"?>
<Connector><Error number="1" text="Unable to find an image manipulation component"/><ConnectorInfo enabled="true"/></Connector>
Returned xml: [object XMLDocument]
Returned headers:
Date: Thu, 05 Aug 2010 13:27:27 GMT
Server: Microsoft-IIS/6.0
MicrosoftOfficeWebServer: 5.0_Pub
X-Powered-By: ASP.NET
Content-Length: 152
Content-Type: text/xml; Charset=UTF-8
Cache-Control: no-cache
It talk about image manipulation component, same thing when a launch CKFinder. But We can see X-Powered-By: ASP.NET in the returned header :/
Why did I get this error... ASP is the evil !!
I continue to seek a solution with my concern.
Re: Helper script for CKFinder - Asp version
1. Adjust the configuration of your server so the aspx pages work correctly
2. Set the image component in config.asp as "None"
Usually people opts to do (1) and that's the point where this wizard can provide the hints about what needs to be done through several tests; but as you say that you don't wanna do it, then your option is to disable the handling of images by CKFinder.
Re: Helper script for CKFinder - Asp version
I change image component to none and it works. Thanks.
Now need to configure
Re: Helper script for CKFinder - Asp version
I manage to list my pictures in the new window after click on explorer server. But when i do a right click on a picture and choose `see`, a new window is openning but with a wrong URL.
Example :
my picture is located in //serveur/name-site/fpdb/piture-name.jpg
in the new window : //serveur/fpdb/piture-name.jpg
Vars that indicate the path of the picture is baseUrl and baseDir ? If i can see the list of pictures, why i can't see one picture in a bigger format than listing ?
Re: Helper script for CKFinder - Asp version
Re: Helper script for CKFinder - Asp version
baseUrl was like that ../../../../../fpdb/ or now it is like this /fpdb/
it works very well. Listing and view is ok ^^
Thanks again for your help ^^
Re: Helper script for CKFinder - Asp version
Hi friend!
Thanks for your help in the forums, the truth that I could solve a lot about the integration of the CKEditor CKFinder.
But I've been stuck using the wizard, I got to fix several bugs, but the latter is not.
This is a screenshot of the problem:
the problem is:
The test file has failed.
Requested URL: http://www.edutic.ua.es/usuarios/rosabe ... ocache=Wed Dec 15 17:54:57 UTC+0100 2010
Returned status: 404
I wanted to send a PM, but will not let me send. Do you speak Spanish? would understand better. XD
Thank you very much for the information and support friend.
Re: Helper script for CKFinder - Asp version
Re: Helper script for CKFinder - Asp version
Hi,
I'm trying to use CKFinder in my application but couldn't get it to work. The installation instructions state "Copy the distribution files to your web server inside the /ckfinder/ folder or any other folder in your web site."
What are the distribution files? I downloaded buy cialis the zip file which contains a lot of folders. Am I to copy the contents of the "core" folder? I tried that keep getting XML request error. I posted a question on their forums. It's been almost two days now and there's no response.
This is clearly a bad sign for support. Can anyone either give me some pointers or recommend a good HTML editor that comes with a file/image browser that I can also use without the editor.
Re: Helper script for CKFinder - Asp version
The "distribution files" (installation package) are what you download from the CKFinder download page (.zip or .tar.gz version). Choose the server-side integration version that suits you (PHP, ASP.NET, ASP, Java, ColdFusion) and unpack all contents of this archive to the "ckfinder" folder. Do not change the folder structure of the installation package.
Documentation Manager, CKSource
See CKEditor 5 docs, CKEditor 4 docs, CKEditor 3 docs, CKFinder 3 docs, CKFinder 2 docs for help.
Visit the new CKEditor SDK for samples showcasing editor features to try out and download!
Re: Helper script for CKFinder - Asp version
I'm getting the following error on step 29:
Running test 29 of 45.
The file has failed.
Requested URL: ../core/connector/asp/connector.asp?command=DeleteFiles&type=Files¤tFolder=%2F&FileName=hello.txt&nocache=Fri Dec 28 20:00:47 CST 2012
Returned status: 500
Returned text: <font face="Arial" size=2>
<p>Microsoft VBScript runtime </font> <font face="Arial" size=2>error '800a0007'</font>
<p>
<font face="Arial" size=2>Out of memory: 'oFSO.FolderExists'</font>
<p>
<font face="Arial" size=2>/intranet/ckeditor/ckfinder/core/connector/asp/utils/FileSystem.asp</font><font face="Arial" size=2>, line 403</font>
Returned xml: null
Returned headers:
I guess that there's
I guess that there's something strange in the way that you have configured the paths and it's entering into an infinite loop, or there's something special in your setup that makes that function fail.
Unfortunately it seems that another of the forums features that has been removed with the upgrade is the ability of sending personal messages, so if you don't want to post the info about your configuration here you'll have to send me an email to amla70, in gmail and of course dot com.
Fixed
It had commented out CKFinder_Config.Add "Thumbnails", Thumbnails in config.asp because I don't want thumbnails created (but I do want thumbnails to show up when browsing the server). After I took out the comments the wizard finished all tests with no problems. I'll have to read the docs to figure out why thumbnails don't appear but filenames and sizes do.
Thanks for providing that
Thanks for providing that info about what's the cause of your error.
But now I don't understand your next comment, You want thumbnails while browsing the folders but you don't want those thumbnails to be saved?
Creating a thumbnail takes some CPU, and specially in cases where there are lots of images forcing them to be recreated on the fly for each request would be a performance nightmare.
Failure on classic asp site
I tried running the demo of the ckfinder download, and when that failed I installed the wizard you've provided. Running that I fail on test 7 with the following:
Any help would be much appreciated
I've tried downloading the
I've tried downloading the current CKFinder for asp and it seems that despite all the months that have passed since its release, they still haven't fix a bug in the config.asp file that it's provided in the download:
Open the file with a text editor, go to the end and delete the following line
The zip plugin hasn't been included in the release, so when the config.asp file tries to load it, the server obviously complains about the problem and depending on your configuration it might be easier or not to notice it.
Let's hope that someday they push an updated release without such bug.
just wanted to thank you
just wanted to thank you alfonsoml for your amazing script!
Great!
Great!
It's good to know that somebody has used it successfully :-)
I guess that there's
I guess that there's something strange in the way that you have configured the paths and it's entering into an infinite loop, or there's something special in your setup that makes that function fail.
The script fails in IE10-11.
The script fails in IE10-11. We had user who configured CKFinder for ASP in IE11 and have got:
Ops, there's a javascript error. This is totally unexpected.
Please, report it so it can be fixed
errorMsg: Object doesn't support property or method 'createNSResolver'
url: http://mytest/ckfinder/wizard/default.html
lineNumber: 246