Note that there are some explanatory texts on larger screens.

plurals
  1. POWhat is the format of xml context definition file that XmlApplicationContext(sFileName) will read?
    primarykey
    data
    text
    <p>All the examples that I can search online use the App.Config mode of specifying the context definition retrieved by </p> <pre><code>contextToGetSprungObjects = ContextRegistry.GetContext(contextname) </code></pre> <p>I want to use </p> <pre><code>contextToGetSprungObjects = new XmlApplicationContext(sXmlFileName) </code></pre> <p>(I'm calling into a DLL (that needs Spring.net) from another executable (MsWord) so app.config approach is out). I tried sneaking in MyDll.dll.config.. didn't fly. On using the XmlApplicationContext approach to read it from a specified xml file, I get the following error </p> <pre><code>{"Error registering object with name '' defined in 'file [D:\\Work\\Seven\\WordAutomation\\ContentControls\\WordDocument1\\bin\\debug\\MyWPFPlotPopup.dll.config]' : There is no parser registered for namespace ''\r\n&lt;configSections&gt;&lt;sectionGroup name=\"spring\"&gt;&lt;section name=\"context\" type=\"Spring.Context.Support.ContextHandler, Spring.Core\" /&gt;&lt;/sectionGroup&gt;&lt;section name=\"log4net\" type=\"log4net.Config.Log4NetConfigurationSectionHandler, log4net\" /&gt;&lt;/configSections&gt;"} </code></pre> <p>Which leads me to believe that the two approaches need their xml in a differently shaped bottle. I searched high and low but the schema for the xml that is needed eludes me.. everything I can find uses X.exe.config or Web.config. Can someone point me to a valid xml context defintion for Spring.net?</p> <pre><code>&lt;spring&gt; &lt;context&gt; &lt;context name="MyApplication"&gt; &lt;resource uri="file://Resources/MyApplicationContext.xml"/&gt; &lt;/context&gt; &lt;/context&gt; &lt;/spring&gt; </code></pre> <p>I think this is the relevant section of the app.config that I want Spring.net to readd</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload