RenewTicket - Index outside of bounds of the array
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. |
|
Hi Matt,
Are there any steps that we can follow to replicate this issue?
Regards,
Ivan Dimitrov
the Telerik team
I think we just figured it out... we were accidentally using the asp:Login control in one place, and it was probably putting a "regular" forms authentication cookie on the response, which sitefinity didn't like. In general we're using a completely custom login form, so I don't think we'll see it anymore. Sorry for the false alarm...
So my last guess didn't end up fixing it. Here's the latest on what I think is causing this error. We have two different domains pointing to the same SF instance. If I try to login to the backend under our second domain (not the original one that we have been using all along) it results in this error until I a) close the browser or b) delete the cookies. When I finally do get in, I am unable to publish pages (failed workflow operation).
Okay so now I can make it happen every time on the original domain, so maybe nothing to do with accessing it through the second domain. If I try to login to the backend with a user that doesn't have access to the backend, I get this error. Sounds silly, but we're going to do this a lot by accident now that we have to track two different logins, one for the frontend and one for the backend.
Hi Matt,
The problem is that we use FormsAuthenticationTicket.UserData property to store additional user information which is specific for Sitefinity. In your case FormsAuthenticationTicket.UserData is an empty array and this results in the error you see. We made some changes to the code which provides some more descriptive information about the error.
Is there any reason for not using our built-in Login controls which will not cause such a issue? I tried to replicate the issue by using the standard ASP.NET Login control with no avail. Probably there is something in the logic of your custom control that sends data to FormsAuthenticationTicket.UserData and then we read it in an inappropriately.
Best wishes,
Ivan Dimitrov
the Telerik team
Ivan,
Hi Matt,
Try setting persistent parameter to true. The same code is used in our login control, so there should not be a difference if you use this code or the Login control. There are not changes to the LoginForm and LoginControl related to the authentication since the RC released on 17 th of November. There are small improvements in the form rendering.
Greetings,
Ivan Dimitrov
the Telerik team
We ran into this issue 12 days ago. It was happening for less then a few hours and then went away without any intervention on our part. We have not seen it since.
The problem occurred while using Sitefinity 4.2.1650.0. Attached is a screen shot of the error with stack trace. Perhaps it will prove useful in diagnosing the problem.
Hello Antoine,
This is not the same issue except the main error. Your stack trace is different. The initial issue is related to the RenewTicket, since you get error from PermissionAttribute which is responsible for permission set to verify against the current user and allowed actions. As I see you query a page on which you have news list control. The problem could be if you have set some specific permissions to a news item for a user that does not exist or similar case. Try removing the controls from the page to narrow down the issue. Then check permissions for the problematic control and content items. You can try to set them again.
Greetings,
Ivan Dimitrov
the Telerik team
Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>