【问题标题】:The remote name could not be resolved: 'www.google.com' using Recaptcha无法解析远程名称:使用 Recaptcha 的“www.google.com”
【发布时间】:2012-08-09 10:25:50
【问题描述】:

我将 Recaptcha 用于我的 ASP.NET 站点。在开发环境中一切正常,但是当我公开到生产环境时,我收到了这个错误:

The remote name could not be resolved: 'www.google.com'
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.Net.WebException: The remote name could not be resolved: 'www.google.com'

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:


[WebException: The remote name could not be resolved: 'www.google.com']
   System.Net.HttpWebRequest.GetRequestStream() +5322142
   Recaptcha.RecaptchaValidator.Validate() in D:\recaptcha-repo-dotnet\library\RecaptchaValidator.cs:134
   Recaptcha.RecaptchaControl.Validate() in D:\recaptcha-repo-dotnet\library\RecaptchaControl.cs:332
   System.Web.UI.Page.Validate() +141
   System.Web.UI.Page.Validate(String validationGroup) +8740369
   System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +84
   System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565

【问题讨论】:

    标签: c# asp.net captcha recaptcha


    【解决方案1】:

    您的虚拟主机不允许您的服务器连接到其他计算机。

    让他们改变这一点,或者换一个更好的主人。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-09-08
      • 1970-01-01
      • 2016-05-31
      • 2013-05-13
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多