2.9 Contact.aspx ERROR

Topics: Controls
Feb 27, 2014 at 1:11 PM
When trying to enter contact page giving error. How can I fix it ?
Ooops! An unexpected error has occurred.

This one's down to me! Please accept my apologies for this - I'll see to it that the developer responsible for this happening is given 20 lashes (but only after he or she has fixed this problem).

Error Details:
Url : http://havacilik.akun.edu.tr/contact.aspx

Raw Url : /contact

Message : Exception of type 'System.Web.HttpUnhandledException' was thrown.

Source : System.Web

StackTrace : at System.Web.UI.Page.HandleError(Exception e)

at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

at System.Web.UI.Page.ProcessRequest()

at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)

at System.Web.UI.Page.ProcessRequest(HttpContext context)

at ASP.contact_aspx.ProcessRequest(HttpContext context) in c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\aafacdb0\4d57655c\App_Web_2n3wx3iy.10.cs:line 0

at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()

at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

TargetSite : Boolean HandleError(System.Exception)

Message : Object reference not set to an instance of an object.

Source : App_Code.-qbnatba

StackTrace : at App_Code.Controls.RecaptchaControl.OnInit(EventArgs e) in c:\Inetpub\vhosts\pashahq.com\havacilik.akun.edu.tr\App_Code\Extensions\Recaptcha\RecaptchaControl.cs:line 489

at System.Web.UI.Control.InitRecursive(Control namingContainer)

at System.Web.UI.Control.InitRecursive(Control namingContainer)

at System.Web.UI.Control.InitRecursive(Control namingContainer)

at System.Web.UI.Control.InitRecursive(Control namingContainer)

at System.Web.UI.Control.InitRecursive(Control namingContainer)

at System.Web.UI.Control.InitRecursive(Control namingContainer)

at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

TargetSite : Void OnInit(System.EventArgs)
Coordinator
Feb 27, 2014 at 8:02 PM
Edited Feb 27, 2014 at 8:09 PM
How did you get recaptcha on contact form?

My mistake, code was contributed at some point and I forgot about it.
Feb 28, 2014 at 9:21 AM
Dear rtur,

I gave read/write access to App_Code and its fixed.