No, I didn't catch any exceptions. And there is no stack-trace, since
I didn't see the actual error anywhere, it was occuring in the
OnEndRequest of the http request.
I eventually tracked down the issue -- it had to do with Databinding
accessing properties on an object. Those properties did lookups to
find data, and the object had not been saved yet. Something like
this--
public IList<Projects> GetActiveProjects
{
get
{
return Projects.FindAll(
Restrictions.Eq("Owner", this),
Restrictions.Eq("Status", ProjectStatus.Active)
);
}
}
So databinding would access this property (even though it wasn't
actually being used anywhere on the view) before the object was
actually saved. And I couldn't find any way to tell if the object was
saved or prevent access to this property by the databinder. All I
could do was put in an ugly hack that checks for an Id of 0--
public IList<Projects> GetActiveProjects
{
get
{
if(this.Id==0){return null;}
return Projects.FindAll(
Restrictions.Eq("Owner", this),
Restrictions.Eq("Status", ProjectStatus.Active)
);
}
}
I must be doing something fundamentally wrong.
On Nov 20, 1:05 pm, Markus Zywitza <
markus.zywi...@gmail.com> wrote:
> Did you catch any exceptions? What is the stacktrace?
>
> -Markus
>
> 2009/11/19 JakeS <
jakesteven...@gmail.com>: