<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	>
<channel>
	<title>Comments on: MVC CAPTCHA for Preview Release 3</title>
	<atom:link href="http://www.coderjournal.com/index.php/2008/06/mvc-captcha-for-preview-release-3/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.coderjournal.com/2008/06/mvc-captcha-for-preview-release-3/</link>
	<description>while(!(succeed = try()));</description>
	<pubDate>Sun, 05 Jul 2009 20:17:24 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Chris Rock</title>
		<link>http://www.coderjournal.com/2008/06/mvc-captcha-for-preview-release-3/comment-page-1/#comment-23759</link>
		<dc:creator>Chris Rock</dc:creator>
		<pubDate>Tue, 09 Dec 2008 14:09:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.coderjournal.com/?p=240#comment-23759</guid>
		<description>I'm trying to use IIS 5.1 (XP) and 6.0 (so I'm using the .mvc extension for my controllers) but I can't get the captch image to display.  The exception generated is:
System.Web.HttpException: The incoming request does not match any route.
   at System.Web.Routing.UrlRoutingHandler.ProcessRequest(HttpContextBase httpContext)
   at System.Web.Routing.UrlRoutingHandler.ProcessRequest(HttpContext httpContext)
   at System.Web.Routing.UrlRoutingHandler.System.Web.IHttpHandler.ProcessRequest(HttpContext context)
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&amp; completedSynchronously)

This is my route table setup:
            // For IIS 5.1 (XP)
            routes.MapRoute(
                "Default2",                                              // Route name
                "{controller}.mvc/{action}/{id}",                        // URL with parameters
                new { controller = "Home", action = "Home", id = "" },  // Parameter defaults
                new { action = "[^\\.]*" }
            );

            routes.MapRoute(
                "Default",                                              // Route name
                "{controller}/{action}/{id}",                           // URL with parameters
                new { controller = "Home", action = "Home", id = "" },  // Parameter defaults
                new { action = "[^\\.]*" }
            );

The request generated is this (e.g.):
http://localhost/Member.mvc/captcha.ashx?guid=adf8d220cedd441daf55a5c0c688dfc4

This works great when I run it through the VS.Net 2008 web server, but not IIS 5.1/6.  What am I missing?  

Thanks,
Chris</description>
		<content:encoded><![CDATA[<p>I&#8217;m trying to use IIS 5.1 (XP) and 6.0 (so I&#8217;m using the .mvc extension for my controllers) but I can&#8217;t get the captch image to display.  The exception generated is:<br />
System.Web.HttpException: The incoming request does not match any route.<br />
   at System.Web.Routing.UrlRoutingHandler.ProcessRequest(HttpContextBase httpContext)<br />
   at System.Web.Routing.UrlRoutingHandler.ProcessRequest(HttpContext httpContext)<br />
   at System.Web.Routing.UrlRoutingHandler.System.Web.IHttpHandler.ProcessRequest(HttpContext context)<br />
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()<br />
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&amp; completedSynchronously)</p>
<p>This is my route table setup:<br />
            // For IIS 5.1 (XP)<br />
            routes.MapRoute(<br />
                &#8220;Default2&#8243;,                                              // Route name<br />
                &#8220;{controller}.mvc/{action}/{id}&#8221;,                        // URL with parameters<br />
                new { controller = &#8220;Home&#8221;, action = &#8220;Home&#8221;, id = &#8220;&#8221; },  // Parameter defaults<br />
                new { action = &#8220;[^\\.]*&#8221; }<br />
            );</p>
<p>            routes.MapRoute(<br />
                &#8220;Default&#8221;,                                              // Route name<br />
                &#8220;{controller}/{action}/{id}&#8221;,                           // URL with parameters<br />
                new { controller = &#8220;Home&#8221;, action = &#8220;Home&#8221;, id = &#8220;&#8221; },  // Parameter defaults<br />
                new { action = &#8220;[^\\.]*&#8221; }<br />
            );</p>
<p>The request generated is this (e.g.):<br />
<a href="http://localhost/Member.mvc/captcha.ashx?guid=adf8d220cedd441daf55a5c0c688dfc4" rel="nofollow">http://localhost/Member.mvc/captcha.ashx?guid=adf8d220cedd441daf55a5c0c688dfc4</a></p>
<p>This works great when I run it through the VS.Net 2008 web server, but not IIS 5.1/6.  What am I missing?  </p>
<p>Thanks,<br />
Chris</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JoostS</title>
		<link>http://www.coderjournal.com/2008/06/mvc-captcha-for-preview-release-3/comment-page-1/#comment-21506</link>
		<dc:creator>JoostS</dc:creator>
		<pubDate>Tue, 18 Nov 2008 10:33:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.coderjournal.com/?p=240#comment-21506</guid>
		<description>Nick,

Thanks for your reply in your mail, it's working now. I had some problems with implementing it in vb.net. </description>
		<content:encoded><![CDATA[<p>Nick,</p>
<p>Thanks for your reply in your mail, it&#8217;s working now. I had some problems with implementing it in vb.net.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JoostS</title>
		<link>http://www.coderjournal.com/2008/06/mvc-captcha-for-preview-release-3/comment-page-1/#comment-21394</link>
		<dc:creator>JoostS</dc:creator>
		<pubDate>Mon, 17 Nov 2008 11:08:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.coderjournal.com/?p=240#comment-21394</guid>
		<description>Hi,

I'm trying this captcha module into my ASP.NET MVC (beta) application, but I can't get it to work. I think it has to do with the beta release of MVC. I get the error CaptchaImage is not a member of System.Web.Mvc.HtmlHelper.

Do I need to modify anything? 

Thanks in advance</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I&#8217;m trying this captcha module into my ASP.NET MVC (beta) application, but I can&#8217;t get it to work. I think it has to do with the beta release of MVC. I get the error CaptchaImage is not a member of System.Web.Mvc.HtmlHelper.</p>
<p>Do I need to modify anything? </p>
<p>Thanks in advance</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Noah</title>
		<link>http://www.coderjournal.com/2008/06/mvc-captcha-for-preview-release-3/comment-page-1/#comment-18766</link>
		<dc:creator>Noah</dc:creator>
		<pubDate>Tue, 28 Oct 2008 17:01:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.coderjournal.com/?p=240#comment-18766</guid>
		<description>Thanks for the great work, this is very helpful.  I recently used this and made some modifications you might find useful including:

1) Modifying CaptchaTextBox to allow for custom html attributes (such as defining the CSS class)
2) Modifying CaptchaValidationAttribute to automatically invalidate my model (instead of set a captchaValid value)

Details are at http://noahblu.wordpress.com/2008/10/28/aspnet-mvc-captcha/ 

Noah</description>
		<content:encoded><![CDATA[<p>Thanks for the great work, this is very helpful.  I recently used this and made some modifications you might find useful including:</p>
<p>1) Modifying CaptchaTextBox to allow for custom html attributes (such as defining the CSS class)<br />
2) Modifying CaptchaValidationAttribute to automatically invalidate my model (instead of set a captchaValid value)</p>
<p>Details are at <a href="http://noahblu.wordpress.com/2008/10/28/aspnet-mvc-captcha/" rel="nofollow">http://noahblu.wordpress.com/2008/10/28/aspnet-mvc-captcha/</a> </p>
<p>Noah</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bookmarks about Captcha</title>
		<link>http://www.coderjournal.com/2008/06/mvc-captcha-for-preview-release-3/comment-page-1/#comment-13241</link>
		<dc:creator>Bookmarks about Captcha</dc:creator>
		<pubDate>Wed, 20 Aug 2008 00:30:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.coderjournal.com/?p=240#comment-13241</guid>
		<description>[...] - bookmarked by 2 members originally found by emosk8 on 2008-08-07  MVC CAPTCHA for Preview Release 3  http://www.coderjournal.com/2008/06/mvc-captcha-for-preview-release-3/ - bookmarked by 3 members [...]</description>
		<content:encoded><![CDATA[<p>[...] - bookmarked by 2 members originally found by emosk8 on 2008-08-07  MVC CAPTCHA for Preview Release 3  <a href="http://www.coderjournal.com/2008/06/mvc-captcha-for-preview-release-3/" rel="nofollow">http://www.coderjournal.com/2008/06/mvc-captcha-for-preview-release-3/</a> - bookmarked by 3 members [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan Swatik</title>
		<link>http://www.coderjournal.com/2008/06/mvc-captcha-for-preview-release-3/comment-page-1/#comment-9723</link>
		<dc:creator>Dan Swatik</dc:creator>
		<pubDate>Fri, 11 Jul 2008 13:29:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.coderjournal.com/?p=240#comment-9723</guid>
		<description>

hmm either I forgot or it got cut off</description>
		<content:encoded><![CDATA[<p>hmm either I forgot or it got cut off</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan Swatik</title>
		<link>http://www.coderjournal.com/2008/06/mvc-captcha-for-preview-release-3/comment-page-1/#comment-9722</link>
		<dc:creator>Dan Swatik</dc:creator>
		<pubDate>Fri, 11 Jul 2008 13:27:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.coderjournal.com/?p=240#comment-9722</guid>
		<description>Actually got it working
You have to declare the captchaValid as a nullable parameter like so

[CaptchaValidation("captcha")]   
public void Register(bool? captchaValid, string otherParameters)   
{   
    // do stuff   
} 

also in the web config make sure to declare it like this
Not the dot Mvc 


    


whats listed in the blog post must be dated.. and was changed at some point.</description>
		<content:encoded><![CDATA[<p>Actually got it working<br />
You have to declare the captchaValid as a nullable parameter like so</p>
<p>[CaptchaValidation("captcha")]<br />
public void Register(bool? captchaValid, string otherParameters)<br />
{<br />
    // do stuff<br />
} </p>
<p>also in the web config make sure to declare it like this<br />
Not the dot Mvc </p>
<p>whats listed in the blog post must be dated.. and was changed at some point.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan Swatik</title>
		<link>http://www.coderjournal.com/2008/06/mvc-captcha-for-preview-release-3/comment-page-1/#comment-9681</link>
		<dc:creator>Dan Swatik</dc:creator>
		<pubDate>Fri, 11 Jul 2008 01:55:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.coderjournal.com/?p=240#comment-9681</guid>
		<description>Thanks Nick
I actually did get it to work ...well at least to display

now I get this 
A value is required for parameter 'captchaValid' in action 'Register'. The parameter either has no value or its value could not be converted. To make a parameter optional its type should either be a reference type or a Nullable type.

I gather it has something to do with the OnActionExecuting filter thingy... where in tarnation do I place that code in my project?</description>
		<content:encoded><![CDATA[<p>Thanks Nick<br />
I actually did get it to work &#8230;well at least to display</p>
<p>now I get this<br />
A value is required for parameter &#8216;captchaValid&#8217; in action &#8216;Register&#8217;. The parameter either has no value or its value could not be converted. To make a parameter optional its type should either be a reference type or a Nullable type.</p>
<p>I gather it has something to do with the OnActionExecuting filter thingy&#8230; where in tarnation do I place that code in my project?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nick Berardi</title>
		<link>http://www.coderjournal.com/2008/06/mvc-captcha-for-preview-release-3/comment-page-1/#comment-9680</link>
		<dc:creator>Nick Berardi</dc:creator>
		<pubDate>Fri, 11 Jul 2008 01:32:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.coderjournal.com/?p=240#comment-9680</guid>
		<description>That is because you action is probably picking it up.  put a constraint on your action and controller.  to check for periods.  "[^\\.]*" works really well.</description>
		<content:encoded><![CDATA[<p>That is because you action is probably picking it up.  put a constraint on your action and controller.  to check for periods.  &#8220;[^\\.]*&#8221; works really well.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan Swatik</title>
		<link>http://www.coderjournal.com/2008/06/mvc-captcha-for-preview-release-3/comment-page-1/#comment-9654</link>
		<dc:creator>Dan Swatik</dc:creator>
		<pubDate>Thu, 10 Jul 2008 21:56:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.coderjournal.com/?p=240#comment-9654</guid>
		<description>Nick do you have a working web site with this?

I can not seem to make it work... I'm not sure if this is because I am using the MVC Membership Starter Kit or what...

But it doesn't seem to want to spit out the image instead I get a error from the MVC assembly stating that it can't find the controller for captcha.ashx

Please help..thanks</description>
		<content:encoded><![CDATA[<p>Nick do you have a working web site with this?</p>
<p>I can not seem to make it work&#8230; I&#8217;m not sure if this is because I am using the MVC Membership Starter Kit or what&#8230;</p>
<p>But it doesn&#8217;t seem to want to spit out the image instead I get a error from the MVC assembly stating that it can&#8217;t find the controller for captcha.ashx</p>
<p>Please help..thanks</p>
]]></content:encoded>
	</item>
</channel>
</rss>
