[Mono-bugs] [Bug 81006][Maj] New - MachineKeySection.MakeKey: Invalid key length

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Fri Mar 2 13:35:01 EST 2007


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by dna at informatik.uni-kiel.de.

http://bugzilla.ximian.com/show_bug.cgi?id=81006

--- shadow/81006	2007-03-02 13:35:01.000000000 -0500
+++ shadow/81006.tmp.15704	2007-03-02 13:35:01.000000000 -0500
@@ -0,0 +1,70 @@
+Bug#: 81006
+Product: Mono: Class Libraries
+Version: unspecified
+OS: GNU/Linux [Other]
+OS Details: Debian etch on vServer Linux
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Major
+Component: Sys.Web
+AssignedTo: grendello at gmail.com                            
+ReportedBy: dna at informatik.uni-kiel.de               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: MachineKeySection.MakeKey: Invalid key length
+
+While trying to register a new user account with the CreateUser controls i
+get following error:
+
+System.ArgumentException: Invalid key length
+  at System.Web.Configuration.MachineKeySection.MakeKey (System.String key,
+Boolean decryption) [0x00000]
+  at System.Web.Configuration.MachineKeySection.SetDecryptionKey
+(System.String n) [0x00000]
+  at System.Web.Configuration.MachineKeySection.get_DecryptionKey192Bits ()
+[0x00000]
+  at System.Web.Security.FormsAuthentication.Encrypt
+(System.Web.Security.FormsAuthenticationTicket ticket) [0x00000]
+  at System.Web.Security.FormsAuthentication.GetAuthCookie (System.String
+userName, Boolean createPersistentCookie, System.String strCookiePath)
+[0x00000]
+  at System.Web.Security.FormsAuthentication.SetAuthCookie (System.String
+userName, Boolean createPersistentCookie, System.String strCookiePath)
+[0x00000]
+  at System.Web.Security.FormsAuthentication.SetAuthCookie (System.String
+userName, Boolean createPersistentCookie) [0x00000]
+  at System.Web.UI.WebControls.CreateUserWizard.Login () [0x00000]
+  at System.Web.UI.WebControls.CreateUserWizard.OnNextButtonClick
+(System.Web.UI.WebControls.WizardNavigationEventArgs e) [0x00000]
+  at System.Web.UI.WebControls.Wizard.ProcessEvent (System.String
+commandName, System.String commandArg) [0x00000]
+  at System.Web.UI.WebControls.Wizard.OnBubbleEvent (System.Object source,
+System.EventArgs e) [0x00000]
+  at System.Web.UI.WebControls.CreateUserWizard.OnBubbleEvent
+(System.Object source, System.EventArgs e) [0x00000]
+  at System.Web.UI.Control.RaiseBubbleEvent (System.Object source,
+System.EventArgs args) [0x00000]
+  at System.Web.UI.WebControls.Button.OnCommand
+(System.Web.UI.WebControls.CommandEventArgs e) [0x00000]
+  at System.Web.UI.WebControls.Button.RaisePostBackEvent (System.String
+eventArgument) [0x00000]
+  at
+System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent
+(System.String eventArgument) [0x00000]
+  at System.Web.UI.Page.RaisePostBackEvent (IPostBackEventHandler
+sourceControl, System.String eventArgument) [0x00000]
+  at System.Web.UI.Page.RaisePostBackEvents () [0x00000]
+  at System.Web.UI.Page.InternalProcessRequest () [0x00000]
+  at System.Web.UI.Page.ProcessRequest (System.Web.HttpContext context)
+[0x00000]
+
+My Key is:
+<machineKey
+validationKey='37CBA95C5D77286379AD9351F54FC8A3A6D28E35A2E064099C466A3AD4A7D1522BB685CA468450A7B7BDF099DB47F622E4AA3BAB264C6370C9E9C59CF276DC8D'
+            decryptionKey='491B0E3ED2EF2878D71EFF660715FA49'
+      validation='SHA1' decryption='AES' />
+
+Works on .NET


More information about the mono-bugs mailing list