This is a migrated thread and some comments may be shown as answers.

DNN Editor Base-64 Dialog Error

3 Answers 73 Views
Editor
This is a migrated thread and some comments may be shown as answers.
B
Top achievements
Rank 1
B asked on 04 Jul 2008, 04:32 PM
Hi,

I recently installed the RadEditor into DNN.   The editor loads fine and seems to work, until you click an item on the toolbar. 

I get this error when click say the Image / Flash / Media buttons.

Invalid length for a Base-64 char array. 

[FormatException: Invalid length for a Base-64 char array.]
   System.Convert.FromBase64String(String s) +0
   Telerik.Web.Dialogs.DialogParametersSerializer.Deserialize(String serialized) +169
   Telerik.Web.UI.DialogParameters.Deserialize(String source) +6
   Telerik.Web.UI.DialogHandler.GetDialogParameters() +566
   Telerik.Web.UI.DialogHandler.LoadDialogControl() +22
   Telerik.Web.UI.DialogHandler.OnInit(EventArgs e) +214
   System.Web.UI.Control.InitRecursive(Control namingContainer) +321
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +834
c




DLL Version 2008.1.515.20 , I Know there is a newer version, wasnt sure if it fixed this error or not and dont want to install if its not compatible.


I have checked to make sure the Dialog Handler was installed correctly also.  At first it wasnt and I had to correct it.  I tested by visiting the "Telerik.Web.UI.DialogHandler.aspx" page.  I got this response: "Loading the dialog...", I'm not sure if that is the correct response or not, but thats what I got.

In DNN I also added the following to the SitUrls.config file.
  <RewriterRule> 
       <LookFor>.*Telerik.Web.UI.DialogHandler.aspx(.*)</LookFor> 
       <SendTo>~/Telerik.Web.UI.DialogHandler.aspx$1</SendTo> 
    </RewriterRule> 


I have also read this KB article: http://www.telerik.com/support/kb/article/b454K-babc-b454T-a-b454c-a.aspx  , although my problem is similar, it does not apply to me because I am using the DNN Provider.  I get this error on all instances of the editor. 

I'm at a loss on what the problem is and have spent alot of time trying to figure this out with no luck.

3 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 08 Jul 2008, 01:58 PM
Hello B,

If you are using the DNN Provider of RadEditor you should not manually modify the web.config and SitUrls.config at all. The editor's provider will take care of that and will updated these files automatically.

Could you please, share the steps that you have followed to install the RadEditor provider so that we can repeat them in order to reproduce the problem locally?

Best regards,
Rumen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
B
Top achievements
Rank 1
answered on 11 Jul 2008, 02:15 AM
I'm not sure what went wrong with the install..
I actually removed the editor completly and tried again...
There was some code in the SiteUrls.Config file that was throwing it off.


The Image Manager is working now, but whenever I try to save any content I get this dreaded error: 

A critical error has occurred.
The control collection cannot be modified during DataBind, Init, Load, PreRender or Unload phases.


I found another forum post that says this is a bug.
0
Lini
Telerik team
answered on 15 Jul 2008, 08:27 AM
Hi,

This is a confirmed bug with the editor in DNN and some ajax scenarios. The bug will be fixed in the next DNN update for RadControls. If you wish to get it earlier, please open a formal support ticket and we will send you a hotfix build.

Greetings,
Lini
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Editor
Asked by
B
Top achievements
Rank 1
Answers by
Rumen
Telerik team
B
Top achievements
Rank 1
Lini
Telerik team
Share this question
or