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

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsIFrameIFrameIFrame errorIFrame error
Previous
 
Next
New Post
9/8/2010 11:00 AM
 

I am using IFrame to make a call to another website and in the URL im providing the Login Credentials as Query String parameters. When I use the same URL in IE(browser) it works fine but in IFrame it throws the following error:

Did anyone encounter this before?

Server Error in '/' Application.

Length of the data to decrypt is invalid.

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: Length of the data to decrypt is invalid.

Source Error:

Line 178: { Line 179: // Get roles from roles cookie Line 180: FormsAuthenticationTicket ticket = 
FormsAuthentication.Decrypt(Context.Request.Cookies["portalroles"].Value); Line 181: 
Line 182: //convert the string representation of the security role data into a string array

Source File: C:\SVN\SpringBoard\trunk\SpringBoard\Global.asax.cs    Line: 180

Stack Trace:

[CryptographicException: Length of the data to decrypt is invalid.] 
System.Security.Cryptography.RijndaelManagedTransform.TransformFinalBlock(Byte[] inputBuffer, Int32 inputOffset, Int32 inputCount) 
+7588181 System.Security.Cryptography.CryptoStream.FlushFinalBlock() 
+33 System.Web.Configuration.MachineKeySection.EncryptOrDecryptData(Boolean fEncrypt, Byte[] buf, 
Byte[] modifier, Int32 start, Int32 length, IVType ivType, Boolean 
useValidationSymAlgo) +225 System.Web.Security.FormsAuthentication.Decrypt(String encryptedTicket) +246 
Quaero.SpringBoard.Portal.Global.Application_PreRequestHandlerExecute(Object sender, EventArgs e) in 
C:\SVN\SpringBoard\trunk\SpringBoard\Global.asax.cs:180 
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() 
+68 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& 
completedSynchronously) +75 


Version Information: Microsoft .NET Framework Version:2.0.50727.4927; ASP.NET Version:2.0.50727.4927
 
New Post
9/8/2010 1:05 PM
 
The problem is most likely due to Third Party Cookie policy in IE. To test this:

Go to Tools > Internet Options > Privacy > Advanced and set Override automatic cookie handling.

Vitaly Kozadayev
Principal
Viva Portals, L.L.C.
 
New Post
9/9/2010 1:23 PM
 
Yep, that was exactly the error. One of the cookies in Dotnetnuke and third party site has the same name. I changed it and it resolved the issue
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsIFrameIFrameIFrame errorIFrame error


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