0

按照本教程,我在一个网站上实现了 recaptcha。尝试提交表单后,我在第 37 行收到以下异常。如果我删除第 37 行的重新验证码,则不会发生此错误。

Line 35:     if (IsPost && Validation.IsValid())
Line 36:     {
**Line 37:         if (ReCaptcha.Validate())**
Line 38:         {


[WebException: Too many automatic redirections were attempted.]
   System.Net.HttpWebRequest.GetResponse() +6120419
   Microsoft.Web.Helpers.ReCaptcha.ExecuteValidateRequest(String formData) +194
   Microsoft.Web.Helpers.ReCaptcha.Validate(HttpContextBase context, String privateKey, VirtualPathUtilityBase virtualPathUtility) +131
   Microsoft.Web.Helpers.ReCaptcha.Validate(String privateKey) +98
   ASP._Page_conference_Default_cshtml.Execute() in 
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +208
   System.Web.WebPages.WebPage.ExecutePageHierarchy(IEnumerable`1 executors) +68
   System.Web.WebPages.WebPage.ExecutePageHierarchy() +123
   System.Web.WebPages.StartPage.RunPage() +19
   System.Web.WebPages.StartPage.ExecutePageHierarchy() +67
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +78
   System.Web.WebPages.WebPageHttpHandler.ProcessRequestInternal(HttpContextBase httpContext) +121
4

0 回答 0