Friday, February 02, 2007

MonoRail - Web MVC model on ASP.NET

MonoRail is a MVC Web Framework inspired by Action Pack.

1. Download MonoRail from here.
2. If there's error "Project type not support" error while opening a MonoRail web project occur, download VS 2005 SP1 here.
3. Download a complete Castle Monorail sample project here.
4. In IIS, associate the extension you want to use (.rails) for MonoRail with ASP.Net ISAPI(aspnet_isapi.dll).
5. Deploying the application
To deploy, simply copy your webapp's bin and Views directory as well as Global.asax and your web.config files to /web/test and then you can point your browser at http://yourserver.com/test/index.rails.

Castle+iBatisNet+MonoRail
Castle+iBatisNet+Castle.MVC+ASP.NET

NVelocity engine

Change a library project to web project:
the simple way is open the .csproj in Notepad and change the line
<ProjectType>Local< /ProjectType>
to
<ProjectTypeGuids>{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}< /ProjectTypeGuids>

Some link:
Intro to MonoRail (cn)
Implement page cache for MonoRail (cn)
Use NDO in MonoRail (cn)
TerryLee's Castle Series
NDO
Castle ActiveRecord Issues
DotNet软件开发框架
基于Castle+IBatisNet+Castle.MVC的ASP.NET构架
使用IBatisNet + Castle 开发DotNet软件
IBatisNet+Castle构架开发指南 (续) 附代码生成模板
Asp.Net中获取Castle容器中的服务的另一方法

No comments: