문제

MONO 2.10의 릴리스 노트는 ASP.NET MVC 3.0 및 Razor XSP .

새로 생성 된 ASP.NET MVC 3.0 기본 프로젝트 (Visual Studio 2010로 작성) 2.4.2 (Mac OS X)에서 다음 DLL이 누락되었습니다.

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

Windows 설치에서 얻은 DLL로 대체하는 모든 것. 프로젝트가 작성되지만 프로젝트를 디버깅하려고 할 때 다음과 같은 오류 메시지가 나타납니다.

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.
.

이러한 대체품을 만들기 전에 응용 프로그램은 실행중인 참조 오류로 분명히 실행됩니다. 새로운 DLL의 무언가가 XSP 서버를 망쳐 놓고 있음을 제안합니다.

나는 무엇을 잘못하고 있습니까? 너무 단순 해지고 있니? 나는 Mono와 "Noreferrer"> Monodevelz 의 새로운 기능이 있습니다. 그러나 나는 MVC를 성공적으로 만들고, 빌드하고 디버그 할 수 있습니다. Monodevelop의 현재 설치가있는 2.0 2.0 프로젝트.

도움이 되었습니까?

해결책

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.

다른 팁

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top