{"action":"closed","issue":{"url":"https://api.github.com/repos/pythonnet/pythonnet/issues/180","repository_url":"https://api.github.com/repos/pythonnet/pythonnet","labels_url":"https://api.github.com/repos/pythonnet/pythonnet/issues/180/labels{/name}","comments_url":"https://api.github.com/repos/pythonnet/pythonnet/issues/180/comments","events_url":"https://api.github.com/repos/pythonnet/pythonnet/issues/180/events","html_url":"https://github.com/pythonnet/pythonnet/issues/180","id":139531994,"number":180,"title":"Exception in flask and mod_wsgi app","user":{"login":"danic","id":1656546,"avatar_url":"https://avatars.githubusercontent.com/u/1656546?v=3","gravatar_id":"","url":"https://api.github.com/users/danic","html_url":"https://github.com/danic","followers_url":"https://api.github.com/users/danic/followers","following_url":"https://api.github.com/users/danic/following{/other_user}","gists_url":"https://api.github.com/users/danic/gists{/gist_id}","starred_url":"https://api.github.com/users/danic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danic/subscriptions","organizations_url":"https://api.github.com/users/danic/orgs","repos_url":"https://api.github.com/users/danic/repos","events_url":"https://api.github.com/users/danic/events{/privacy}","received_events_url":"https://api.github.com/users/danic/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2016-03-09T10:08:39Z","updated_at":"2016-03-15T11:50:52Z","closed_at":"2016-03-15T11:50:52Z","body":"Has anybody managed to successfully run a (non-trivial) Flask app under Apache mod_wsgi using pythonnet ? My app keeps throwing this exception:\r\n\r\n`\"System.TypeInitializationException: The type initializer for 'System.Web.Script.Serialization.JavaScriptSerializer' threw an exception. ---> System.Configuration.ConfigurationErrorsException: Error Initializing the configuration system. ---> System.ArgumentException: The 'ExeConfigFilename' argument cannot be null\"`\r\n\r\nas soon as it tries to use a clr object that deserializes some JSON. Full details here:\r\n\r\nhttp://stackoverflow.com/questions/35872504/pythonnet-exception-the-execonfigfilename-argument-cannot-be-null\r\n\r\nOn this [bug](https://bugzilla.xamarin.com/show_bug.cgi?id=10468) Mono [added](https://github.com/mono/mono/commit/57f5187ad29a7913f083a659ea77d90eb8bad4d4) the `mono_domain_set_config` API to help with this situation. I don't see that method being called in the Mono code. Neither it seems to be called if I run the code in this other [bug](https://bugzilla.xamarin.com/show_bug.cgi?id=12669) through gdb. However the code does not crash, as on the other hand I would expect as my version of Mono does have that bugfix. Still don't quite understand how that bug fix works though if it's not being called. Obviously missing something fairly fundamental here.\r\nMaybe pythonnet `PyNet_Init` needs to explicitly call `mono_domain_set_config` ?"}}