[英]The remote name could not be resolved: 'www.google.com' using Recaptcha
我使用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
您的虛擬主機不允許您的服務器連接到其他計算機。
要求他們改變這一點,或切換到更好的主機。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.