•  traelin
  • 51.2% (Neutral)
  • YAF Forumling Topic Starter
I'm getting close to nuking the CollapsibleImage since I've already been making so many danged changes anyways.

This is a two part bug.

1. When enabling CDN to true on the ScriptManager on Forum.cs (using VS11 Beta, which utilizes the latest Microsoft Ajax CDN), the CollapsibleImage on any of the Update Panels on ForumCategoryList.ascx, ForumActiveDiscussion.ascx, and ForumStatistics.ascx throws a PRM (PageRequestManager) error that the key already exists on the page.

2. Disabling the CDN, per the default, avoids the exception in the aforementioned. However, the CollapsibleImages still throw the following when the user is a Guest:

SCRIPT5022: Sys.WebForms.PageRequestManagerServerErrorException: Failed to load viewstate. The control tree into which viewstate is being loaded must match the control tree that was used to save viewstate during the previous request. For example, when adding controls dynamically, the controls added during a post-back must match the type and position of the controls added during the initial request.

Couldn't I just nuke the whole visibility toggling, which is likely what's causing this (along with a possible Guest YafSession issue)? I suppose it'd be ugly but why not just use an HtmlGenericControl as the AttachedControl, cast it in CollapsibleImage.cs, and change its styling to display:none? Not exactly reusable but at least it's a quick fix to get it working?
I can not reproduce this with VS 2012 rc with yaf source from the repository. Which YAF Version did you use is that a stand alone yaf installation?

About Us

The YAF.NET is an open source .NET forum project. YAF.NET is supported by an team of international developers who are build community by building community software.

Powered by Resharper Donate with PayPal button

Project Twitter Updates

Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved