fchabot
06-26-2006, 10:34 AM
Hello,
Help wanted to solve or help me debug a databinding problem. First let me describe my app a little bit. I am using the Spring.NET-20060618-1826 build. I have an ASP.NET 1.1 SP1 web form, using a master page (an .ascx as in SpringAir). The (slave) page has an infragistics ultraWebTab with 4 tabs. The content of each tab is a user control (.ascx), obviously deriving from Spring.Web.UI.UserControl. Each tab defines some databinding expressions. The binding expressions access a public readonly property of the page. This property accesses an object from the Session. Everything seems to work correctly, but one in a while I got the Spring.Objects.InvalidPropertyException when the Spring.DataBinding.DataBindingManager.BindSourceTo Target occurs. I can't find any good reason for this error. I log everything in a file and the session data are there. Anyway the behavior is not reproducible, at least deterministically, so it's not linked to data but more to the application or databinding infrastructure.
It therefore rather looks a like a timing problem. Is there any known issue with the databinding? Is it specific to user controls? How can trace what's going on?
Even more problematic, whenever this error occurs, the binding definitely stops working unless I force the app to unload its appdomain. How can I at least prevent this? I may be overlooking, oversimplifying things, but I've seen an IsValid property for every binding that is created. This property is set to false whenever an error occurs during the binding. The thing is that the binding will then only occurs if IsValid is true. How can I reset the property?
Thanks very much for helping me out of this "nightmare"
François
Help wanted to solve or help me debug a databinding problem. First let me describe my app a little bit. I am using the Spring.NET-20060618-1826 build. I have an ASP.NET 1.1 SP1 web form, using a master page (an .ascx as in SpringAir). The (slave) page has an infragistics ultraWebTab with 4 tabs. The content of each tab is a user control (.ascx), obviously deriving from Spring.Web.UI.UserControl. Each tab defines some databinding expressions. The binding expressions access a public readonly property of the page. This property accesses an object from the Session. Everything seems to work correctly, but one in a while I got the Spring.Objects.InvalidPropertyException when the Spring.DataBinding.DataBindingManager.BindSourceTo Target occurs. I can't find any good reason for this error. I log everything in a file and the session data are there. Anyway the behavior is not reproducible, at least deterministically, so it's not linked to data but more to the application or databinding infrastructure.
It therefore rather looks a like a timing problem. Is there any known issue with the databinding? Is it specific to user controls? How can trace what's going on?
Even more problematic, whenever this error occurs, the binding definitely stops working unless I force the app to unload its appdomain. How can I at least prevent this? I may be overlooking, oversimplifying things, but I've seen an IsValid property for every binding that is created. This property is set to false whenever an error occurs during the binding. The thing is that the binding will then only occurs if IsValid is true. How can I reset the property?
Thanks very much for helping me out of this "nightmare"
François