dehqhani
یک شنبه 12 مرداد 1393, 19:08 عصر
سلام
من با کامپوننت زیر یه کپتچا ساختم کار میکنه ولی بعضی مواقع که خطا زیر را میدهد
از کد زیر خطا میگیره
( CaptchaControl2.ValidateCaptcha(tbCode.Text);)
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.
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[NullReferenceException: Object reference not set to an instance of an object.]
MSCaptcha.CaptchaControl.ValidateCaptcha(String userEntry) +146
Login2.btnEnter_Click(Object sender, EventArgs e) +326
System.Web.UI.WebControls.Button.RaisePostBackEven t(String eventArgument) +153
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3706
من با کامپوننت زیر یه کپتچا ساختم کار میکنه ولی بعضی مواقع که خطا زیر را میدهد
از کد زیر خطا میگیره
( CaptchaControl2.ValidateCaptcha(tbCode.Text);)
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.
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[NullReferenceException: Object reference not set to an instance of an object.]
MSCaptcha.CaptchaControl.ValidateCaptcha(String userEntry) +146
Login2.btnEnter_Click(Object sender, EventArgs e) +326
System.Web.UI.WebControls.Button.RaisePostBackEven t(String eventArgument) +153
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3706