Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Null Obejct Reference Error
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00841273
Message ID:
00841281
Vues:
23
Brian,

Here's a WAG ... how are you persisting your DataSet? I'm guessing a Session object (I'm not familiar at all with MM, so I'm not sure how that part of it is set up). Anyway, if you're using out-of-process Sessions (like maybe to SQL Server?) ... then perhaps your Session object is timing out and is no longer available, so your DataSet ends up being null.

~~Bonnie

>I'm experiencing a wierd, intermittent sort of error that seems to happen mostly when my ASP.Net app has been idle for a few minutes:
>
>"Server Error in '/PHfusin' Application.
>Object reference not set to an instance of an object.
>Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code."
>
>The stack trace looks as follows:
>
>[NullReferenceException: Object reference not set to an instance of an object.]
> OakLeaf.MM.Main.Business.mmBusinessObject.SetCurrentDataSet(DataSet ds)
> PHfusion.PHfFramework.Business.phfBusinessObject.SetDataSet(DataSet ds)
> PHfusion.PHfWeb.Message.MessageSummary.Page_Load(Object sender, EventArgs e)
> System.EventHandler.Invoke(Object sender, EventArgs e) +0
> System.Web.UI.Control.OnLoad(EventArgs e) +67
> System.Web.UI.Control.LoadRecursive() +35
> System.Web.UI.Page.ProcessRequestMain() + 731
>
>The message makes it looks as if my ancestor object (mmBusinessObject) has been lost completely, and I have no idea how that could be happening. And I can restart the application, repeat the exact same steps a second time and NOT see this error.
>
>Has anyone experienced similar problems? I'd appreciate any advice.
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform