Okay, that works, for txt-files. Google-validation demands .html but
it's simple to add another static-handler for that.

My static application (which is it's own application under /static)
broke and served http 500 for all files
I managed to solve it, since the sub-application inherits the settings
from it's parent. Adding (I had a name-clash with "StaticFile")

 <system.webServer>
        <handlers>
            <remove name="MonoRail" />
            <remove name="StaticFile" />
            <add name="StaticFile" path="*" verb="*"
modules="StaticFileModule" resourceType="Either" requireAccess="Script" />
        </handlers>
</system.webServer>

to the sub-application helped.

Ken Egozi wrote:
> map *.txt extensions to StaticFileHandler, they won't fire up MonoRail
> at all.
>
>
> On Wed, May 20, 2009 at 2:21 PM, Jimmy Shimizu
> <[email protected] <mailto:[email protected]>> wrote:
>
>
>     I'm using RoutingModuleEx, basic MonoRail routing that is mapped
>     like this:
>
>     <add name="MonoRail" path="*" verb="*"
>     type="Castle.MonoRail.Framework.MonoRailHttpHandlerFactory,
>     Castle.MonoRail.Framework" preCondition="integratedMode"/>
>
>     I was under the impression that with this approach, static files are
>     never handled correctly. If that is not the case, I'd love to hear
>     about
>     the solution :)
>
>     I get Url smaller than 2 tokens if I try to request a static file.
>
>     Jokin Cuadrado wrote:
>     > What routing are you using?
>     >
>     > the one i use check if a file exist before handling the dynamic url,
>     > so just put a static robot.txt in the root and it will work.
>     >
>     >
>     > On Mon, May 18, 2009 at 12:01 PM, Jimmy Shimizu
>     <[email protected] <mailto:[email protected]>> wrote:
>     >
>     >> How do you guys solve the issue with files that are supposed to
>     be found
>     >> directly under the siteroot when using advanced routing (meaning,
>     >> catching * with Monorail)?
>     >>
>     >> I was planning on using a specific controller that servers
>     robots.txt
>     >> and sitemaps dynamically, but when someone needs to verify for
>     example
>     >> domain-ownership with analytics or webmastertools or such, how
>     do you
>     >> handle that?
>     >>
>     >>
>     >
>     >
>     >
>     >
>
>
>
>
>
> -- 
> Ken Egozi.
> http://www.kenegozi.com/blog
> http://www.delver.com
> http://www.musicglue.com
> http://www.castleproject.org
> http://www.gotfriends.co.il
>
> >

--~--~---------~--~----~------------~-------~--~----~
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