Compile the solution
First open the solution file that can be found here “/src/FubuMVC.sln” and compile the code, you can also use the “Build.bat” file to build the solution which is using Ruby 1.8.6.
Note for IIS7 64-bit users:
When you create the application pool, ensure that you edit the Advanced Settings of the pool and set the "Enable 32-bit Applications" to true.
More Information:
The reason for this is because, by default, AltOxite is based of the SQLite database engine (which makes it easy to get up and running fast). SQLite is an unmanaged library that is either 32-bit or 64-bit but not both which makes it impossible to compile .NET apps using "Any CPU" and also SQLite. To keep deployment and initial setup simple, AltOxite is compiled for x86-only. If you wish to run 64-bit only, you will have to either download the 64-bit SQLite libraries and recompile AltOxite, or switch to using another database engine without the bit-ness constraints of an unmanaged database provider like SQLite, Firebird, or some others.
|
IIS 7.0
- Open the Internet Information Services (IIS) Manager from the Administrative Tools menu (Control Panel -> Administrative Tools (or Winkey+R, then type: InetMgr.exe [RETURN])
- Create a new application pool with a descriptive name (i.e. AltOxiteAppPool) and the "Integrated" pipeline mode.
- Create a virtual path pointing towards the “AltOxite.Web” folder and make sure that you select the application pool you just created in step 2 (i.e. AltOxiteAppPool)
IIS 6.0
Running the example site on IIS 6.0 requires a little bit more effort, this is because IIS 6.0 can only use the .Net runtime for files that are mapped to it, because of the Routing capabilities of FubuMVC (and other MVC frameworks) the Url that are used don’t exist so there is no file to map towards the .Net runtime. The solution is to map all requests to the aspnet_isapi.dll. This is better explained in the following post (http://blog.codeville.net/2008/07/04/options-for-deploying-aspnet-mvc-to-iis-6/) then you should un-map this mapping from the “/Content/” folder so that images are not first being processed by the .Net runtime, this is explained in the following post (http://blog.codeville.net/2008/07/07/overriding-iis6-wildcard-maps-on-individual-directories/). After this you should be ready to go. When you see the following error “Configuration Error” it means that the configuration is not correctly done.
Visual Studio built-in web server
Open the FubuMVC.sln solution file, and right click on the AltOxite.Web project and click on "Set as StartUp project". Press F5 and it should open your browser and begin debugging.
NOTE: This will only work with Visual Studio 2008 SP1 or later (which is required by FubuMVC anyhow, so you should be OK here)
NOTE: The built-in Visual Studio web server (Cassini) does not propertly handle the default document route (i.e. / maps to HomeController.Index). The built-in server appears to require Default.aspx to be there, or else it will show the directory listing of the root. Any other route appears to be supported (i.e. /home/index, /blog...)
Comments (0)
You don't have permission to comment on this page.