[Mono-list] Mono and ASP.NET MVC

Michael Hutchinson m.j.hutchinson at gmail.com
Thu Dec 10 16:35:43 EST 2009


On Thu, Dec 10, 2009 at 2:12 PM, Austerus <andrei at dragonflame.org> wrote:
> With the help of some good-willed people around here I managed to get my
> mono xsp server up and running my asp.net apps. However I've recently
> decided to try out the MVC capabilities of Mono for ASP.NET.
>
> Using Mono Develop I've started up a new project for ASP.NET MVC in a new
> folder somewhere on my drive (but outside the test folder of xsp) and then
> stated xsp there.
>
> As I noticed there were a default model, default controller, default routes,
> etc, I decided to check out the outcome and I got this error:
>
> Parser Error
>
> Description: Error parsing a resource required to service this request.
> Review your source file and modify it to fix this error.
>
> Parser Error Message: Cannot find type asp_test.MvcApplication
>
> Source Error:
>
> Line 1: <%@ Application Language="C#" Inherits="asp_test.MvcApplication" %>
>
>
> Now that Line 1 is the only line in my Global.asax file where "asp_test" is
> the name of my app (and inherently the name of the main namespace there,
> while MvcApplication is the name of the generated class in that namespace)
> ... Global.asax.cs looks something like this:
>
> namespace asp_test
> {
>        public class MvcApplication : System.Web.HttpApplication
>        {
>                public static void RegisterRoutes (RouteCollection routes)
> ...
>
> Are there some resources that I'm missing? The file looks ok to me, I have
> built basic MVC apps on Windows before so I can't really tell what's wrong.
>
> I would appreciate any help or suggestions
>
> PS: I'm running the latest Mono, Mono Develop on Mac OS X 10.6.2

Did you successfully build the app within MD before trying to run it?

-- 
Michael Hutchinson
http://mjhutchinson.com


More information about the Mono-list mailing list