Error: Length of th…
 
Notifications
Clear all

[Solved] Error: Length of the data to decrypt is invalid.

4 Posts
2 Users
1 Reactions
9,149 Views
0
Topic starter

New install of CP

Server 2012 R2

Exchange 2016 CU2

WHen trying to log in for first time get Error: Length of the data to decrypt is invalid.

Anonymous Topic starter 2016-11-21 00:11
[CryptographicException: Length of the data to decrypt is invalid.]
   System.Security.Cryptography.CryptoAPITransform.TransformFinalBlock(Byte[] inputBuffer, Int32 inputOffset, Int32 inputCount) +5047816
   CloudPanel.Base.Security.DataProtection.Decrypt(String cipherString, String key) +215
   RazorOutput.RazorView.Execute() +7024
   Nancy.ViewEngines.Razor.NancyRazorViewBase`1.ExecuteView(String body, IDictionary`2 sectionContents) +123
   System.Dynamic.UpdateDelegates.UpdateAndExecuteVoid3(CallSite site, T0 arg0, T1 arg1, T2 arg2) +268
   Nancy.ViewEngines.Razor.<>c__DisplayClass2b.<RenderView>b__2a(Stream stream) +971
   Nancy.Hosting.Aspnet.NancyHandler.EndProcessRequest(Task`1 task) +186
   System.Web.CallHandlerExecutionStep.OnAsyncHandlerCompletion(IAsyncResult ar) +178
   System.Web.AsyncStepCompletionInfo.ReportError() +41
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +408
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +137
3 Answers
1

That is the issue. The password has to be encrypted. You need to access the /CloudPanel/admin/settings page from the server CloudPanel is installed on. If you are using host headers you may need to take those off to access the page.

0

How did you populate the settings? Did you manually edit the settings.xml or did you go to /CloudPanel/Admin/Settings ?

0
Topic starter

I Manually entered the setting. could not reach the settings page initially?

Share: