# Re: Mono + nginx (OpenBSD 5.3)

**URL:** <https://www.ruby-forum.com/t/re-mono-nginx-openbsd-5-3/228784>\
**Category:** NGINX\
**Created:** [May 7, 2013, 9:27pm UTC](https://www.ruby-forum.com/t/re-mono-nginx-openbsd-5-3/228784 "2013-05-07T21:27:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gee](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/47e85d/32.png) [@Gee](https://www.ruby-forum.com/u/Gee)\
**Post date:** [May 7, 2013, 9:27pm UTC](https://www.ruby-forum.com/t/re-mono-nginx-openbsd-5-3/228784/1 "2013-05-07T21:27:08Z")

</div>

OK, by removing all copies of \bin\System.Web.\* from my app’s  
path, I  
whittled the exception down to this:

Handling exception type TypeInitializationException  
Message is An exception was thrown by the type initializer for  
System.Web.Configuration.WebConfigurationManager  
IsTerminating is set to True  
System.TypeInitializationException: An exception was thrown by the type  
initializer for System.Web.Configuration.WebConfigurationManager

Server stack trace:  
at System.Web.Hosting.ApplicationHost.SetHostingEnvironment ()  
[0x00000]  
in :0  
at System.AppDomain.DoCallBack (System.CrossAppDomainDelegate  
callBackDelegate) [0x00000] in :0  
at (wrapper remoting-invoke-with-check) System.AppDomain:DoCallBack  
(System.CrossAppDomainDelegate)  
at (wrapper xdomain-dispatch) System.AppDomain:DoCallBack  
(object,byte[]&,byte[]&)

Exception rethrown at [0]:  
—\> System.MissingMethodException: Method not found:  
‘System.Configuration.ConfigurationManager.get\_ConfigurationFactory’.  
— End of inner exception stack trace —  
at (wrapper xdomain-invoke) System.AppDomain:DoCallBack  
(System.CrossAppDomainDelegate)  
at (wrapper remoting-invoke-with-check) System.AppDomain:DoCallBack  
(System.CrossAppDomainDelegate)  
at System.Web.Hosting.ApplicationHost.CreateApplicationHost  
(System.Type  
hostType, System.String virtualDir, System.String physicalDir) [0x00000]  
in  
:0  
at Mono.WebServer.VPathToHost.CreateHost  
(Mono.WebServer.ApplicationServer server, Mono.WebServer.WebSource  
webSource) [0x00000] in :0  
at Mono.WebServer.XSP.Server.RealMain (System.String[] args, Boolean  
root, IApplicationHost ext\_apphost, Boolean quiet) [0x00000] in  
:0  
at Mono.WebServer.XSP.Server.Main (System.String[] args) [0x00000] in  
:0

Thoughts (as I am pretty much out!)?

Thanks!  
G
