You may need to make the Microsoft.Web.Helpers
namespace available for views. In your Web.config (in the Views
folder) add:
<namespaces> <add namespace="Microsoft.Web.Helpers"/> </namespaces>
You can then use the following helper in your view:
@ReCaptcha.Validate([public key])
If the namespaces parameter does not work, you can try adding the @using Microsoft.Web.Helpers
statement on top of the view to see if this helps. If so, you need to try to find out why the namespace parameter in web.config does not work ...
source share