in

dotNetFreak

Ramblings & Controls from a .NET Addicted Freak!

FormShield & "System.NullReferenceException: Object reference not set to an instance of an object."

Last post 11-20-2009 4:22 PM by hotseat. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 05-31-2009 10:56 PM

    FormShield & "System.NullReferenceException: Object reference not set to an instance of an object."

    I'm getting this error constantly from my ASP.NET 3.5 web site. I have a licensed version of the control and it generally works, but it seems like there is some unexpected response coming in that causes this and I'd prefer just to handle it gracefully. Any chance of seeing the source? System.NullReferenceException: Object reference not set to an instance of an object. at dotNetFreak.WebControls.FormShieldHttpHandler.ProcessRequest(HttpContext context) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) REQUEST_METHOD GET URL /Controls/FormShieldHttpHandler.aspx QUERY_STRING __formShieldID=ChallengeCtrl&generate=sound&properties=08CD8AACDC7B1193EDCA5F31E1150BE4
    Filed under:
  • 06-22-2009 10:25 AM In reply to

    Re: FormShield & "System.NullReferenceException: Object reference not set to an instance of an object."

    Hi there,

    I have seen this occuring before with one other user, but whilst the exception was coming from FormShield it wasn't actually a problem as such with FormShield.
     
    The easiest way to supress the error is to capture it and then based on the type and source to discard it, this won't cause any problems, but at least you won't keep seeing the error!
     
    I normally have an Application_Error sub in a Global.asax file where I filter out exceptions that I don't want to see.

    Kevin

  • 11-20-2009 4:22 PM In reply to

    Re: FormShield & "System.NullReferenceException: Object reference not set to an instance of an object."

     I too am getting this error, on asp.net 3.5 with a registered control.

     http://www.*******.com/controls/FormShield.aspx?__formShieldID=FormShield1&generate=image&properties=3AD01C0254B4BCE975B6A7F52B663F05809EA3F76FD275F6DFC9D36BE1B2745EA9338FD27FAA911DAE404C06BD37ED123DC6D0FE6ED78E2CF5E4DE6D4336F80DE58630E4B61C73F723516D1A100518BD

Page 1 of 1 (3 items)
Copyright ©2004-2007 Kevin Gearing. All Rights Reserved.
Powered by Community Server (Non-Commercial Edition), by Telligent Systems