[Mono-list] Is Mono 3.0.1 support asp.net mvc3

wangyubin harry198344 at gmail.com
Thu Dec 27 13:34:25 UTC 2012


I use the monodevelop to create a MVC3 with Razor project.
everything is default but when I run the project, always get the error 
below:
======
System.InvalidOperationException
The view 'Index' or its master was not found or no view engine supports 
the searched locations. The following locations were searched: 
~/Views/Home/Index.aspx ~/Views/Home/Index.ascx 
~/Views/Shared/Index.aspx ~/Views/Shared/Index.ascx 
~/Views/Home/Index.cshtml ~/Views/Home/Index.vbhtml 
~/Views/Shared/Index.cshtml ~/Views/Shared/Index.vbhtml

Description: HTTP 500.Error processing request.

Details: Non-web exception. Exception origin (name of application or 
object): System.Web.Mvc.
=========


On 12/27/2012 05:49 AM, Daniel Lo Nigro wrote:
> I think MonoDevelop supports ASP.NET <http://ASP.NET> MVC 3 (and the 
> latest MonoDevelop has some ASP.NET <http://ASP.NET> MVC 3 project 
> templates), but I've found that Visual Studio is better for ASP.NET 
> <http://ASP.NET> MVC development, especially with addins like 
> ReSharper that greatly enhance productivity.
>
>
> On Thu, Dec 27, 2012 at 12:44 AM, wangyubin <harry198344 at gmail.com 
> <mailto:harry198344 at gmail.com>> wrote:
>
>     Hi!
>
>     Thanks for your help!
>     I will try to develop on windows and deploy on linux.
>
>     now, may be we still could not develop asp.net <http://asp.net>
>     mvc3 on monodevelop,
>     though mono is support the asp.net <http://asp.net> mvc3
>
>     best regards,
>     wangyubin
>
>
>     On 12/25/2012 11:23 PM, Daniel Lo Nigro wrote:
>>     Hi!
>>
>>     ASP.NET <http://ASP.NET> MVC 3 works fine on Mono, as does
>>     ASP.NET <http://ASP.NET> MVC 4. I haven't tried using MonoDevelop
>>     as I do development in Visual Studio, but deployment to a Linux
>>     server running Mono 3.0.2 works fine.
>>
>>     That exception generally occurs when you're using Microsoft's
>>     version of Microsoft.Web.Infrastructure.dll. Microsoft's version
>>     relies on internals of IIS, and hence Mono has its own
>>     implementation. You need to either:
>>     1) Delete the Microsoft.Web.Infrastructure.dll file from the bin
>>     directory manually when running under Mono; or
>>     2) Set "Copy Local" to false for the Microsoft.Web.Infrastructure
>>     reference.
>>
>>     I don't think System.Web.Helpers is bundled with Mono - Just use
>>     Microsoft's version. Set Copy Local to True on the reference, or
>>     just copy it from a Windows machine (should be at C:\Program
>>     Files\Microsoft ASP.NET <http://ASP.NET>\ASP.NET <http://ASP.NET>
>>     Web Pages\v2.0\Assemblies\System.Web.Helpers.dll) into your bin
>>     directory.
>>
>>     Good luck!
>>
>>
>>     On Wed, Dec 26, 2012 at 1:45 AM, wangyubin <harry198344 at gmail.com
>>     <mailto:harry198344 at gmail.com>> wrote:
>>
>>         Hi,
>>         I could not run asp.net <http://asp.net> mvc3 project in
>>         monodevelop3.1.0.
>>         My mono is version 3.0.1, but there is no
>>         System.Web.Helpers.dll in mono,
>>         so I could not run the asp.net <http://asp.net> mvc3 project.
>>
>>         I heared that mono3.0.1 is support asp.net <http://asp.net> mvc3,
>>         my exception is :
>>         =====================
>>         System.Security.SecurityException
>>         No access to the given key
>>         =====================
>>         please help me, thanks!
>>
>>         best regards,
>>         wangyubin
>>
>>         _______________________________________________
>>         Mono-list maillist  - Mono-list at lists.ximian.com
>>         <mailto:Mono-list at lists.ximian.com>
>>         http://lists.ximian.com/mailman/listinfo/mono-list
>>
>>
>
>



More information about the Mono-list mailing list