[Ironruby-core] Question about Ivan Porto carrero MVC Sample

Ivan Porto Carrero ivan at flanders.co.nz
Tue Jun 23 15:16:12 EDT 2009


Does the sample work on your machine if you use the correct sqlite assembly?

---
Met vriendelijke groeten - Best regards - Salutations
Ivan Porto Carrero
Blog: http://flanders.co.nz
Twitter: http://twitter.com/casualjim
Author of IronRuby in Action (http://manning.com/carrero)



On Tue, Jun 23, 2009 at 8:59 PM, Mohammad Azam <lists at ruby-forum.com> wrote:

> If I load the Default.aspx page I get the following error:
>
>  The incoming request does not match any route.
> Description: An unhandled exception occurred during the execution of the
> current web request. Please review the stack trace for more information
> about the error and where it originated in the code.
>
> Exception Details: System.Web.HttpException: The incoming request does
> not match any route.
>
> Source Error:
>
> Line 16:
> HttpContext.Current.RewritePath(Request.ApplicationPath, false);
> Line 17:             IHttpHandler httpHandler = new MvcHttpHandler();
> Line 18:             httpHandler.ProcessRequest(HttpContext.Current);
> Line 19:             HttpContext.Current.RewritePath(originalPath,
> false);
> Line 20:         }
>
>
> Source File:
>
> C:\Projects\IronRubyMVCWebApps\IronRubyMVCWebApps\IronRubyMVCWebApps\Default.aspx.cs
> Line: 18
>
>
> I have all the routes in the Routes.rb file:
>
> require 'mvc_application'
>
>
> #default routes
> $routes.ignore_route("{resource}.axd/{*pathInfo}");
>
> $routes.map_route("default", "{controller}/{action}/{id}", {:controller
> => 'Home', :action => 'index', :id => ''})
>
>
>
> --
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> Ironruby-core mailing list
> Ironruby-core at rubyforge.org
> http://rubyforge.org/mailman/listinfo/ironruby-core
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20090623/779afcea/attachment.html>


More information about the Ironruby-core mailing list