Pregunta

Las notas de la versión de Mono 2.10 sugieren soporte para ASP.NET MVC 3.0 y Razor usando xsp .

Al abrir un proyecto predeterminado de ASP.NET MVC 3.0 recién creado (creado con Visual Studio 2010) en MonoDevelop 2.4.2 (Mac OS X), faltan las siguientes DLLs:

System.Web.Entity
System.Web.Helpers
System.Web.Mvc
System.Web.WebPages

Todos los cuales reemplace con DLLs obtenidos de mi instalación de Windows. El proyecto se basa, pero recibo el siguiente mensaje de error al intentar depurar el proyecto:

Adding applications '/:.'...
Registering application:
    Host:          any
    Port:          any
    Virtual path:  /
    Physical path: /.../Mvc3Test/
Handling exception type TargetInvocationException
Message is Exception has been thrown by the target of an invocation.
IsTerminating is set to True
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.

Antes de realizar estos reemplazos, la aplicación se ejecuta, pero obviamente con errores de referencia faltantes. Lo que sugeriría que algo en las nuevas DLL está atornillando el servidor XSP.

¿Qué estoy haciendo mal? ¿Estoy siendo demasiado simplista? Soy nuevo en MONO y monodevelop , pero puedo crear, construir y depurar MVC 2.0 Proyectos con mi instalación actual de MonoDevelop.

¿Fue útil?

Solución

I'm elated. The new version of Mono, 2.10.1, fixed the issues with ASP.NET MVC 3.0. It is running without a hitch.

Otros consejos

Works fine, have a look at http://erikzaadi.com/2011/03/02/installscripttorunaspdotnetmvc3withrazoronnginxataopensuseserver/

The only trick is copying the correct assemblies...

If you need the solution, it's available at http://labs.erikzaadi.com/monoOnSuse/RazorOnMonoSolution.zip

Hope this helps.

[Note] You don't need openSuse to run the solution, just a mono 2.10 environment, works fine on mac as well.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top