Konra,

As you are probably aware MR does not have an official Mono release, and 
therefore Mono is not officially supported.
However, we do welcome patches to fix issues that make our frameworks more Mono 
compatible.

So if you think you have found a bug and can replicate it, please submit a bug 
report here - http://issues.castleproject.org

As part of submitting a bug report, please provide a breaking unit test, and 
please do fill in the MR version used.

Cheers
John




________________________________
From: Konrad Sąkól <[email protected]>
To: [email protected]
Sent: Mon, 4 October, 2010 9:25:17 AM
Subject: Routing on Cassini, IIS and XSP2

Hi All,

I have routing:

rules.Add(new PatternRoute("ex1", "ex1/[name]")
  .DefaultForController().Is("home")
   .DefaultForAction().Is("index")
);

And template (index.vm):

<ul>
<li>$Url.For("%{named='ex1', params={name='somename'}}")
<li>$Url.For("%{area='', controller='home', action='index',
params={name='somename'}}")
</ul>

Under Cassini (and IIS) after default redirect to "/home/index.ashx"
application gives me expected results:

["name"] = $name
/ex1/somename
/ex1/somename

The same application running under XSP2 (Mono 2.6.4) gives me following output:

["name"] = $name
/ex1
/ex1


When accessing application on address "/ex1/foo", on Cassini I get:

["name"] = foo
/ex1/somename
/ex1/somename

on XSP2:

["name"] = foo
/ex1
/ex1

And on IIS:
HTTP Error 404 - File or directory not found.



It seems that it works as expected only under Cassini, but I need it
running on XSP2 (with Apache) and IIS too.
Could  you point me any hints?




Here are some configuration parameters from my web.config:

<monoRail useWindsorIntegration="true" defaultUrlExtension="">
   <url useExtensions="false" />
   ...
</monoRail>

<system.web>
   <httpHandlers>
      <add
         verb="*"
         path="*.ashx"
         type="Castle.MonoRail.Framework.MonoRailHttpHandlerFactory,
Castle.MonoRail.Framework" />

      <add
         verb="*"
         path="*.vm"
         type="System.Web.HttpForbiddenHandler"/>
   </httpHandlers>

   <httpModules>
      <add name="routing"
          type="Castle.MonoRail.Framework.Routing.RoutingModuleEx,
Castle.MonoRail.Framework" />
   </httpModules>
</system.web>



Cheers,
Konrad Sąkól

-- 
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/castle-project-users?hl=en.


      

-- 
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/castle-project-users?hl=en.

Reply via email to