Severity Code Description Project File Line Suppression State
Error CS1705 Assembly 'reCAPTCHA.MVC' with identity 'reCAPTCHA.MVC, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' uses 'System.Web.Mvc, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' which has a higher version than referenced assembly 'System.Web.Mvc' with identity 'System.Web.Mvc, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
Tried to google it, but none of the solutions worked for me. Apparently the package "microsoft-web-helpers" prevents me from updating the "Microsoft.AspNet.Mvc" version.
There are some issues with updating MVC in the earlier version of Umbraco as the core is built around MVC 4 not MVC 5. There are a few guides milling around on how to update the MVC version, however you may still come across issues. At least I had a few with Umbraco 7.2.8.
Your easiest option is to upgrade Umbraco to version 7.3+ in which MVC was updated from 4 to 5.
using Google reCAPTCHA in umbraco
Hi I am using umbraco 7.2.6 and I am trying to implement google's reCAPTCHA in my contact form. So far I tried using these extensions http://recaptchamvc.apphb.com/ https://www.nuget.org/packages/ReCaptcha-AspNet/1.3.0 but with no luck, I can't use these packages my umbraco application.
Does anyone has a better idea?
Hi Moran,
what is the problem with these extensions? Why can't you use these in your application?
/Michaël
I get the following error in my ASP.NET app:
Tried to google it, but none of the solutions worked for me. Apparently the package "microsoft-web-helpers" prevents me from updating the "Microsoft.AspNet.Mvc" version.
Hi Moran,
the problem is that you are using the Recaptcha for MVC 5 and your project is using MVC 4.
You can try the following to solve this:
1) Try to change the dependency in your web.config for MVC
2) Try to uninstall of upgrade your System.Web.Mvc to version 5
/Michaël
Thanks Do you have any link for upgrading System.Web.Mvc?
Try the following command:
/Michaël
There are some issues with updating MVC in the earlier version of Umbraco as the core is built around MVC 4 not MVC 5. There are a few guides milling around on how to update the MVC version, however you may still come across issues. At least I had a few with Umbraco 7.2.8.
Your easiest option is to upgrade Umbraco to version 7.3+ in which MVC was updated from 4 to 5.
Hi Moran,
For Umbraco Forms we created package with reCAPTCHA field, try it - https://our.umbraco.org/projects/collaboration/recaptcha-field-for-umbraco-forms/
Thanks
is working on a reply...