I've been trying to use the new Persistance Framework, followed the tutorial on enabling it site-wide (in web.config) and attaching event handlers in global.asax.
With a breakpoint on the PersistenceSaved event, I always receive an exception in the passed PersistenceEventArgs which I can't figure out:
{"Property accessor 'InnerHtml' on object 'Infragistics.Web.UI.NavigationControls.IGDiv' threw the following exception:'Cannot get inner content of hdr because the contents are not literal.'"}
Obviously it's not persisting anything, and I can't even find this IGDiv object (using the VS object browser).
Any ideas?
Thanks in advance,
Leon
This sample is basically the same as the tutorial. I've already followed all the instructions and the event handlers do work, otherwise I would have never seen that exception.
My problem is that I am trying to apply it to an existing Solution (that uses a LOT of your Controls) and that exception message is not helping me identifying which Control has issues persisting. Is there any other way to receive more exception details?
I am trying to avoid debugging each control separately just to find out which one is throwing the exception...
Hi Leon,
There is a real good sample that you can reference on our online samples that shows the Persistence Framework settings for site-wide persistence: http://samples.infragistics.com/aspnet/Samples/PersistenceFramework/Data/GettingStartedConfigurations/Default.aspx?cn=persistence-framework&sid=86dc26d8-a964-43da-b4f9-502d680d8e62
This sample discusses the configurations for the web.config, attaching the event handlers in the Global.asax, shows the code that powers persistance for this online application, etc,..
Let me know if this sample helps to resolve the problem you are facing. If not, let me know if your settings are the same or different, and if different, in what way.
Yes, that's the tutorial.
Unfortunately I cannot provide a sample project, since this is part of a huge asp.net product, and that error message simply doesn't help identifying the root cause - or even which control is causing this...
How do you have persistance set in your web.config file? Can you show your mark-up?
Also, which tutorial are you following? Is it this: http://help.infragistics.com/NetAdvantage/ASPNET/2011.2/CLR4.0/?page=PersistenceFramework_Getting_Started_with_Persistence_Framework.html?
If another tutorial, can you point me to wha tyou are following?
This is an initial update to let you know that I have received your inquiry and will be looking into this for you. I will follow-up with another message on or before Tuesday.