asp.net mvc 3 - ReCaptcha - null entry for parameter 'captchaValid' -


i have old site on mvc 3 wich working fine, our server crashed last week, i've recovered recaptcha in forms started giving problems didn't have before.

on local machine works fine on production server, set in same way, yells system.argumentexception: parameters dictionary contains null entry parameter 'captchavalid' of non-nullable type 'system.boolean'

i believe should ok

[web.config]

<appsettings>     <add key="webpages:version" value="1.0.0.0"/>     <add key="clientvalidationenabled" value="true"/>     <add key="unobtrusivejavascriptenabled" value="true"/>     <add key="recaptchaprivatekey" value="myprivatekey" />     <add key="recaptchapublickey" value="mypublickey" /> </appsettings> (...) <namespaces>     <add namespace="system.web.mvc" />     <add namespace="system.web.mvc.ajax" />     <add namespace="system.web.mvc.html" />     <add namespace="system.web.routing" />     <add namespace="recaptcha"/> </namespaces> 

[recaptcha on view]

<script type="text/javascript">     var recaptchaoptions = {         theme: 'custom',         custom_theme_widget: 'recaptcha_widget'     }; </script>  <div id="recaptcha_widget" style="display:none">      <div style="float:left;">         <div class="recaptcha_only_if_incorrect_sol" style="color:red">incorrect please try again</div>          <span class="recaptcha_only_if_image"><label for="recaptcha_response_field">insira palavras que vê na imagem</label></span>         <span class="recaptcha_only_if_audio">enter<label for="recaptcha_response_field">insira os números que ouve</label></span>          <input type="text" id="recaptcha_response_field" name="recaptcha_response_field" />     </div>      <div style="float:right;">         <div style="float: left;">             <div id="recaptcha_image"></div>         </div>         <div style="float: left; margin-left: 30xp;">             <div><a href="javascript:recaptcha.reload()" class="recaptcha-btn"><i class="icon-refresh"></i></a></div>             <div class="recaptcha_only_if_image"><a href="javascript:recaptcha.switch_type('audio')" class="recaptcha-btn"><i class="icon-volume-up"></i></a></div>             <div class="recaptcha_only_if_audio"><a href="javascript:recaptcha.switch_type('image')" class="recaptcha-btn"><i class="icon-font"></i></a></div>             <div><a href="javascript:recaptcha.showhelp()" class="recaptcha-btn"><i class="icon-question-sign"></i></a></div>          </div>         <div class="clear"></div>     </div>  </div>  <script type="text/javascript" src="http://www.google.com/recaptcha/api/challenge?k=mykey"></script> <noscript>     <iframe src="http://www.google.com/recaptcha/api/noscript?k=mykey" height="300" width="500" frameborder="0"></iframe><br>     <textarea name="recaptcha_challenge_field" rows="3" cols="40"></textarea>     <input type="hidden" name="recaptcha_response_field" value="manual_challenge"> </noscript> 

[in controller]

[httppost] [recaptcha.recaptchacontrolmvc.captchavalidator] public jsonresult enviar(registermodel model, bool captchavalid, string captchaerrormessage) {     (...) } 

i belive recaptcha.recaptchacontrolmvc.captchavalidator should 1 responsible generating values captchavalid not working outside development machine.

does have idea why happening?

edit

ok couldn't find out why happening got working using recaptcha v2 anyway i'll let question here see if gets answers might same problem


Comments

Popular posts from this blog

Fail to load namespace Spring Security http://www.springframework.org/security/tags -

sql - MySQL query optimization using coalesce -

unity3d - Unity local avoidance in user created world -