Update (thanks to
PranavKM): In WebMatrix, you should not need the using statement to import the
Microsoft.Web.Helpers namespace. I found I needed to do that in Visual Web Developer Express, but not in WebMatrix. Sorry for the confusion.
Or (possibly easier to follow...) if you have at least one page in your site, click the Site workspace selector in the left hand panel of WebMatrix, and then click the ASP.NET Web Pages Administration link. That will take you to the Package Manager.
ohsnyder
0 Points
1 Post
Help with reCaptcha
Nov 10, 2011 04:23 PM|LINK
Line 26: if (!ReCaptcha.Validate("6LcY9skSAAAAAE-T_1zvhSrnxP2J2z5_dHcBhoBv")) {Ye Yu
Member
88 Points
19 Posts
Re: Help with reCaptcha
Nov 10, 2011 06:26 PM|LINK
can you check whether you have Microsoft.Web.Helpers.dll included in your website project?
if you don't have this assembly in your website project
you can try following steps
1. create a empty site from template
2. go to bin folder to add existing file Microsoft.Web.Helpers.dll
you can find this file if you create a site with Bakery template
pranavkm
Participant
796 Points
106 Posts
Re: Help with reCaptcha
Nov 10, 2011 07:27 PM|LINK
You don't have to copy binaries around. That's what the package manager is for :)
Go to _admin on your site, search for microsoft-web-helpers and install the package.
mikepope
Contributor
5803 Points
1156 Posts
Microsoft
Re: Help with reCaptcha
Nov 10, 2011 08:39 PM|LINK
+1 on making sure that the Helpers package is installed.
Also, check whether you need to qualify the reference, either with a using statement:
@using Microsoft.Web.Helpers;
Or just by using a fully qualified name, e.g.
if(! Microsoft.Web.Helpers.ReCaptcha.Validate ...)
Update (thanks to PranavKM): In WebMatrix, you should not need the using statement to import the Microsoft.Web.Helpers namespace. I found I needed to do that in Visual Web Developer Express, but not in WebMatrix. Sorry for the confusion.
Mikesdotnett...
All-Star
155593 Points
19979 Posts
Moderator
MVP
Re: Help with reCaptcha
Nov 11, 2011 06:54 AM|LINK
Or (possibly easier to follow...) if you have at least one page in your site, click the Site workspace selector in the left hand panel of WebMatrix, and then click the ASP.NET Web Pages Administration link. That will take you to the Package Manager.
Web Pages CMS | My Site | Twitter