With VS 2013, when you configure spring, the following error occurs at run time:
Spring.Context.Support.ContextRegistry "type initializer throws an exception.
Cause: The app. Config profile, startup is placed in front of the file.
Workaround: Put startup in the end, the problem is gone.
<?xml version= "1.0" encoding= "Utf-8"?>
<configuration>
<configsections>
<sectiongroup name= "Spring";
<!--provides spring support for the application context-->
< Section name= "Context" type= "Spring.context.support.contexthandler,spring.core"/>
<!--provides Spring Object container support-->
<section name= "Objects" type= "Spring.context.support.defaultsectionhandler,spring.core"/>
</sectiongroup>
</configsections>
<spring>
<context>
<!-- The object XML file used by the IOC container in spring defines-->
<resource uri= "assembly://windowsformsapplication1/ Windowsformsapplication1.objectconfige/objects.xml "/>
</context>
</spring>
<startup>
<supportedruntime version= "v4.0" sku= ". netframework,version=v4.0 "/>
</startup>
</configuration>
Spring.net configuration Error "Spring.Context.Support.ContextRegistry" type initializer throws an exception. 】