Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...CryptographicException: Bad DataCryptographicException: Bad Data
Previous
 
Next
New Post
7/13/2006 1:39 PM
 

Hey folks,

I just upgraded to DNN 4.3.2.  I have DNN setup to do AD authentication, and in the past I'd just use the Windows login prompt.  Well, from some reason I thought I would try and use the form instead - in the past, it just gave me a bad username/password - but I just thought I'd try again since it's the new version.

Anyways, I used my network credentials, and almost worked!  It did recognize the username, but for some reason couldn't validate the password.

Anybody have any idea what it would throw this kind of exception?  (I purged my cookies and tried again, same results.)

 

Server Error in '/' Application.

Bad Data.

Description: 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.

Exception Details: System.Security.Cryptography.CryptographicException: Bad Data.


Source Error:

Line 319:                ' update DNN password to match with authenticated password from AD                            
Line 320:                If objUser.Membership.Password <> txtPassword.Text Then
Line 321:                    UserController.ChangePassword(objUser, objUser.Membership.Password, txtPassword.Text)
Line 322:                End If
Line 323:                _userID = objUser.UserID

Source File: D:\Websites\DotNetNuke\Website\Admin\Security\Signin.ascx.vb    Line: 321

Stack Trace:

[CryptographicException: Bad Data.
]
   System.Security.Cryptography.CryptographicException.ThrowCryptogaphicException(Int32 hr) +33
   System.Security.Cryptography.Utils._DecryptData(SafeKeyHandle hKey, Byte[] data, Int32 ib, Int32 cb, Byte[]& outputBuffer, Int32 outputOffset, PaddingMode PaddingMode, Boolean fDone) +0
   System.Security.Cryptography.CryptoAPITransform.TransformFinalBlock(Byte[] inputBuffer, Int32 inputOffset, Int32 inputCount) +319
   System.Security.Cryptography.CryptoStream.FlushFinalBlock() +30
   System.Web.Configuration.MachineKeySection.EncryptOrDecryptData(Boolean fEncrypt, Byte[] buf, Byte[] modifier, Int32 start, Int32 length, Boolean useValidationSymAlgo) +154
   System.Web.Security.MembershipProvider.DecryptPassword(Byte[] encodedPassword) +107
   System.Web.Security.MembershipProvider.UnEncodePassword(String pass, Int32 passwordFormat) +100
   System.Web.Security.SqlMembershipProvider.GetPassword(String username, String passwordAnswer) +185
   System.Web.Security.MembershipUser.GetPassword() +78
   DotNetNuke.Security.Membership.AspNetMembershipProvider.ChangePassword(UserInfo user, String oldPassword, String newPassword) +52
   DotNetNuke.Entities.Users.UserController.ChangePassword(UserInfo user, String oldPassword, String newPassword) +40
   DotNetNuke.Modules.Admin.Security.Signin.WindowsAuthorization(UserLoginStatus& loginStatus) in D:\Websites\DotNetNuke\Website\Admin\Security\Signin.ascx.vb:321
   DotNetNuke.Modules.Admin.Security.Signin.cmdLogin_Click(Object sender, EventArgs e) in D:\Websites\DotNetNuke\Website\Admin\Security\Signin.ascx.vb:444
   System.Web.UI.WebControls.Button.OnClick(EventArgs e) +105
   System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +107
   System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +174
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5102

[PageLoadException: Bad Data.
]
   DotNetNuke.Services.Exceptions.Exceptions.ProcessPageLoadException(Exception exc, String URL) +354
   DotNetNuke.Framework.PageBase.Page_Error(Object Source, EventArgs e) +377
   System.Web.UI.TemplateControl.OnError(EventArgs e) +105
   System.Web.UI.Page.HandleError(Exception e) +73
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +6944
   System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +154
   System.Web.UI.Page.ProcessRequest() +86
   System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +18
   System.Web.UI.Page.ProcessRequest(HttpContext context) +49
   ASP.default_aspx.ProcessRequest(HttpContext context) +29
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +154
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64


Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...CryptographicException: Bad DataCryptographicException: Bad Data


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out