Success
If you want to run MVC4 in Mono, you need to use some Microsoft DLLs that are not currently provided by Mono.
A word of caution. A quick look at the Mono source in the MC4 source has methods and classes that are not in assembly 3.2.0. There may be malfunctioning functions. The site that I launch is, for all purposes and purposes, an MVC3 site created against the latest dlls.
Microsoft Libraries for Copy
- System.Web.Abstractions - 4.0
- System.Web.Helpers - 2.0
- System.Web.Mvc - 4.0
As soon as you copy the DLL files, if you are still having problems, you may have to do some detective work if the fix does not work. If you get an error message stating that Mono cannot find the DLL, this is usually one of three reasons:
Troubleshooting
I don't have a dll - you can try using the Microsoft DLL version
It searches for an older version of the DLL when the correct one is installed in the GAC or in your project folder. Perhaps the assembly in your project is referencing this version somewhere. You can use re-direct bindings to force the specific version you used.
This cannot find the dll - add the assembly to the compilation / assembly section of your web.config
You get the message "cannot find the search ..." - if there are compilation errors in any of the views in this particular folder, you will receive this message.
Brian source share