Mono 3.0 / Debian / asp.net - Method not found: 'System.Configuration.IConfigurationSectionHandler.Create

Debian Sid, Mono 3.0. I am trying to run the mvc application (it worked before upgrading mono to 3.0). This is an exception:

Exception caught during reading the configuration file: System.MissingMethodException: Method not found: 'System.Configuration.IConfigurationSectionHandler.Create'. at System.Configuration.ClientConfigurationSystem.System.Configuration.Internal.IInternalConfigSystem.GetSection (System.String configKey) [0x00000] in <filename unknown>:0 at System.Configuration.ConfigurationManager.GetSection (System.String sectionName) [0x00000] in <filename unknown>:0 at System.Configuration.ConfigurationManager.get_AppSettings () [0x00000] in <filename unknown>:0 at Mono.WebServer.Apache.Server.get_AppSettings () [0x00000] in <filename unknown>:0 at Mono.WebServer.Apache.Server+ApplicationSettings..ctor () [0x00000] in <filename unknown>:0 

I also found a hint to make changes to / usr / bin / mod -mono-server4:

 #!/bin/sh exec /usr/bin/mono $MONO_OPTIONS "/usr/lib/mono/4.0/mod-mono-server4.exe" " $@ " 

To:

 #!/bin/sh exec /usr/bin/mono $MONO_OPTIONS "/usr/lib/mono/4.5/mod-mono-server4.exe" " $@ " 

Unfortunately, there is no such file: /usr/lib/mono/4.5/mod-mono-server4.exe (there is no such file in the directory / usr / lib / mono / 4.5 /).

Do you have any ideas what is wrong? My application is a simple ServiceStack webpage, and it runs on mono 2.10. But after upgrading to 3.0, it no longer works.

+6
source share
1 answer

You need to add a symbolic link for this file.

 # ln -s /usr/lib/mono/4.0/mod-mono-server4.exe /usr/lib/mono/4.5/mod-mono-server4.exe 

That way, it will still use mod-mono-server4.exe, but with

+7
source

Source: https://habr.com/ru/post/945135/


All Articles