[Mono-list] Running ASP.Net 4.5 MVC Application on Mono

Martin Thwaites monoforum at my2cents.co.uk
Wed Sep 17 21:25:47 UTC 2014


Have you tried the MVC3 boilerplate solution, even just the one that is
generated from Visual Studio?

On 17 September 2014 20:20, Fernando Rodriguez <
frodriguez.developer at outlook.com> wrote:

> That last message I sent this this morning but it didn't get posted cause
> sombody unsubscribed me.
>
> If I check local copy for any of my references a everything gets copied to
> my
> bin directory, but now all the them are the right ones (I diff them
> against the
> ones in lib/mono/4.5) including System.Web.Mvc.dll. But then I'm back to
> this
> exception:
>
> System.MissingMethodException: Method not found:
> 'System.Configuration.IConfigurationSectionHandler.Create'.
>   at
>
> System.Configuration.ClientConfigurationSystem.System.Configuration.Internal.IInternalConfigSystem.GetSection
> (System.String configKey) [0x0000d] in
>
> /usr/src/mono/mono-3.8.0/mcs/class/System.Configuration/System.Configuration/ClientConfigurationSystem.cs:62
>   at System.Configuration.ConfigurationManager.GetSection (System.String
> sectionName) [0x00000] in
>
> /usr/src/mono/mono-3.8.0/mcs/class/System.Configuration/System.Configuration/ConfigurationManager.cs:162
>   at System.Configuration.ConfigurationManager.get_AppSettings ()
> [0x00000] in
>
> /usr/src/mono/mono-3.8.0/mcs/class/System.Configuration/System.Configuration/ConfigurationManager.cs:176
>   at Mono.WebServer.XSP.Server.get_AppSettings () [0x00001] in
> /usr/src/mono/xsp-3.0.11/src/Mono.WebServer.XSP/main.cs:244
>   at Mono.WebServer.XSP.Server+ApplicationSettings..ctor () [0x0002b] in
> /usr/src/mono/xsp-3.0.11/src/Mono.WebServer.XSP/main.cs:65
>
>
> If I delete System.Configuration.dll from the bin directory (or just
> uncheck
> local copy) then the app runs and I get the error that we where discussing
> before I suppose because my Web.config doesn't get loaded?
>
> However when I run it on monodevelop I can see the paths of the loaded
> assemblies and it's loading the same assembly that I had on the bin
> directory
> so it's confusing. I also noticed that when I get the error about the views
> none of the Mvc or Razor assemblies got loaded.
>
> I found several posts about this issue but the solution seems to always be
> to
> make sure there is a symlink to xsp.exe and mod-mono-server.exe on the
> right
> framework directory and that the shell script used to run it uses it but
> that's already done on my system.
>
> My project is set to target Mono / .NET 4.5 and I got the right mono
> runtime
> (3.8.0) selected on MonoDevelop what am I missing?
>
> Thanks
> Fernando
>
>
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-list/attachments/20140917/50057110/attachment.html>


More information about the Mono-list mailing list