Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Error with reCAPTCHA #3034


User avatar
0
bilalhaidar created

Hi, I am getting this error when hosting the app on a remote server. Where can I configure the reCAPTCHA?

Thanks Bilal

ERROR for site owner: Invalid domain for site key reCAPTCHA


2 Answer(s)
  • User Avatar
    0
    exlnt created

    In the web.config of your .Web project you will find the two entries below. You need to update these with the keys provided by Google for your domain.

    <add key="recaptchaPublicKey" value="Your Public Key Value goes here" />
        <add key="recaptchaPrivateKey" value="Your Private Key value goes here" />
        <add key="recaptchaApiVersion" value="2" />
    

    Login to your Google account and then goto <a class="postlink" href="https://www.google.com/recaptcha/">https://www.google.com/recaptcha/</a> to generate your domain keys.

  • User Avatar
    0
    bilalhaidar created

    Thanks :)