Static file in MonoRail can not be loaded in Forms Authentication mode -


i applied forms authentication monorail project.

in login page, static files can not loaded. seems static file can loaded after user logged in. in login page, request script.js redirected

http://localhost:49529/mysite/login/index.rails?returnurl=%2fmysite2fcontent%2fjs%2fscripts.js

thanks help.

if go extension less path , register "*" request go through monorail might case.

try add staticfilehandler before monorailhttphandlerfactory setting this:

<add verb="*" path="*.pdf" type="system.web.staticfilehandler"/> <add verb="*" path="*.zip" type="system.web.staticfilehandler"/> ... <add verb="*" path="*"    type="castle.monorail.framework.monorailhttphandlerfactory,     castle.monorail.framework"/> 

Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -