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...Upgrading DNN P...Upgrading DNN P...$100 reward for DNN 5.2.1 Javascript problem fix (DeserializePrimitiveObject Invocation error)$100 reward for DNN 5.2.1 Javascript problem fix (DeserializePrimitiveObject Invocation error)
Previous
 
Next
New Post
1/25/2010 2:48 PM
 

I think I have found out what the problem probably is which explains why it is so random.

I can recreate this issue by clicking on a link that does a post-back on a DNN 5.2 site before the page is fully loaded.

The reason it is happening is because there is a hidden input that is at the very bottom of the page (called __dnnVariable).
The ClientAPI needs to parse that hidden input and will crash if it isn't there.

To recreate the error, click on a login link, then click on it again right away before the page has a chance to load.
If the page loads slowly then this problem will be more pronounced.

Until there is a solution found, you may want to put a mesage on your site to ask users to try again and wait for the page to load if they get an error (which they are probably doing anyway).

I would recommend that the core be changed to place that hidden input at the top of the page.
 

Rodney,
Let me know if you want me to create a PageBlaster rule that will move that variable up to the top of your pages and we'll see if that helps.


DotNetNuke Modules from Snapsis.com
 
New Post
1/25/2010 2:54 PM
 

Hi There,

I tried to replicate it on my site using that method, but unfortunately it didn't create an error :(

 

 
New Post
1/25/2010 2:55 PM
 
John Mitchell wrote:

Rodney,
Let me know if you want me to create a PageBlaster rule that will move that variable up to the top of your pages and we'll see if that helps.

 

Sounds plausible John - I had noticed that in DNN 5.x it now bombs when you click on somehting before it had finished loading - I just did not realise they might be related! This could also explain why PageBlaster significantly reduced (but did not stop) the messages, as the pages loaded faster.

You can see the problem here: http://www.pokerdiy.com/poker-league-...

Click on the Min/Max expander next to Season Scoreboard and it falls over with Jscript errors (in IE 8)

Yes please, I would like your help to move it to the top - can you paste the rule here or do you want to move to that post on your forums?


Entrepreneur

PokerDIY Tournament Manager - PokerDIY Tournament Manager<
PokerDIY Game Finder - Mobile Apps powered by DNN
PokerDIY - Connecting Poker Players

 
New Post
1/25/2010 4:08 PM
 

Ok, I don't know how well it will work to post the XML here, but here is the rule.

This will move all hidden inputs to the top.

Replace the one is already in the Snapsis.PageBlaster.config file that moves the Viewstate with this one.

This will also move the Viewstate back to the top which may explain the viewstate error you posted above for the same reason.

                 <rule>
                    <ruleName>Move hidden inputs to top</ruleName>
                    <searchFor><![CDATA[(<input[^>]+__VIEWSTATE.*?)(<input[^>]+type="hidden"[^>]+>)]]></searchFor>
                    <replaceWith><![CDATA[$2$1]]></replaceWith>
                    <repeatTimes>99</repeatTimes>
                  </rule>
 


DotNetNuke Modules from Snapsis.com
 
New Post
1/25/2010 5:09 PM
 

Ok, I replaced the existing rule and cleared the PageBlaster cache and restarted the app. If I view the source now the Viewstate is at the top but that hidden variable is still at the bottom?

Interestingly, if I go to my host settings as Host and click on a Min/Max (after it has all loaded) - I get the Deserialize error and nothing happens on that page. This was before and still after this change.


Entrepreneur

PokerDIY Tournament Manager - PokerDIY Tournament Manager<
PokerDIY Game Finder - Mobile Apps powered by DNN
PokerDIY - Connecting Poker Players

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Upgrading DNN P...Upgrading DNN P...$100 reward for DNN 5.2.1 Javascript problem fix (DeserializePrimitiveObject Invocation error)$100 reward for DNN 5.2.1 Javascript problem fix (DeserializePrimitiveObject Invocation 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