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
Post a Comment