I've recently rolled the ckfinder code out to the live site.
I've been developing a CMS that uses ckeditor and ckfinder. Depending on which part of the CMS, ckfinder is used both as a stand alone and integrated into the editor. I've been able to successfully develop my solution on my local.
After rolling the completed project to the live server, attempting to bring up the ckfinder would result in an unknown error (screenshot below).
In response to this, we
- replaced [site-root]\bin\ckfinder.dll with the ckfinder\bin\debug\ckfinder.dll and added the .pdb file.
- Uploaded all of the source files to the live server (as opposed to the compiled version)
- turned off our sites error handler so that we'd be displayed with meaningful errors.
As a result, we ended up with the following error
Error : System.NullReferenceException: Object reference not set to an instance of an object. at CKFinder.Settings.AccessControlManager.GetComputedMask(String resourceType, String folderPath) in D:\CKFinder\CKFinder.Net\Settings\AccessControlManager.cs:line 79 at CKFinder.Connector.CommandHandlers.InitCommandHandler.BuildXml() in D:\CKFinder\CKFinder.Net\Connector\CommandHandlers\InitCommandHandler.cs:line 97 at CKFinder.Connector.CommandHandlers.XmlCommandHandlerBase.SendResponse(HttpResponse response) in D:\CKFinder\CKFinder.Net\Connector\CommandHandlers\XmlCommandHandlerBase.cs:line 88 at CKFinder.Connector.Connector.OnLoad(EventArgs e) in D:\CKFinder\CKFinder.Net\Connector\Connector.cs:line 161 at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Re: Unknown Error & System.NullReferenceException
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+