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

Fernando Rodriguez frodriguez.developer at outlook.com
Wed Sep 17 19:20:18 UTC 2014

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 

System.MissingMethodException: Method not found: 
(System.String configKey) [0x0000d] in 
  at System.Configuration.ConfigurationManager.GetSection (System.String 
sectionName) [0x00000] in 
  at System.Configuration.ConfigurationManager.get_AppSettings () [0x00000] in 
  at Mono.WebServer.XSP.Server.get_AppSettings () [0x00001] in 
  at Mono.WebServer.XSP.Server+ApplicationSettings..ctor () [0x0002b] in 

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?


More information about the Mono-list mailing list