Use CastleMonoRail in Linux + Mono

Source: Internet
Author: User
Use CastleMonoRail in Linux + Mono-Linux technology and application information. For more information, see the following. By oldrev

Although my favorite OS is Linux. net is a friendly multi-language platform, and recently we have discovered the Castle set of good things. So we naturally want MonoRail to run on Mono, mono is really a good thing.

The test procedure is as follows:

Ensure that Mono 1.2.4 + and MonoDevelop 0.15 + are installed, and the pure C # Web Server XSP attached to Mono is added. All of this can be installed using the Ubuntu package management system, if you use Ubuntu Gutsy. We recommend that you download and install the latest MonoDevelop from www.getdeb.net.

Go to http://www.openbeta.cn/firstmonorail.ashxto download the sample program MonoRailSample.zip of the compiled MonoRail framework and decompress it to a directory. Here we assume it is "MonoRailSample ".

Use MonoDevelop to open MonoRailSample. sln and compile the entire solution. If MonoDevelop prompts that no reference error information is found, Delete the existing references of the two projects, add and reference the corresponding DLL from the bin directory of the project.

Case Sensitive! Set MonoRailSample/Web. change the config file name to web. config, "Default. aspx "is renamed as" default. aspx ", we strongly recommend that you change the Views directory to views and modify the web. config.

Run xsp in the directory with default. aspx. XSP will prompt that the service is established on http: // localhost: 8080. Open this URL in your FireFox and you will immediately see the NVelocity rendering result.

So far, We hope your Mono on MonoRail test will be as successful as me.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.