I am just getting hit with this error "Error instantiating spring.root" everytime i am trying to run my Console app.
VS2k5
Heres the Main.cs of my Console App
static void Main(string[] args)
{
IApplicationContext ctx = ContextRegistry.GetContext();
SQLDALAccessor dal = (SQLDALAccessor)ctx.GetObject("xyz");
}
App.Config
============
<configuration>
<!--
<connectionStrings>
<add name="ConnectionString" connectionString="Data Source=.\SQLExpress;Initial Catalog=Northwind;Integrated Security=True" providerName="System.Data.SqlClient" />
</connectionStrings>-->
<configSections>
<sectionGroup name="spring">
<section name="context" type="Spring.Context.Support.ContextHandler, Spring.Core"/>
<section name="objects" type="Spring.Context.Support.DefaultSectionHandler , Spring.Core" />
</sectionGroup>
</configSections>
<spring>
<context>
<resource uri="config://spring/objects"/>
</context>
<objects xmlns="http://www.springframework.net" >
<object id="xyz" type="NSpring.Spring101.SQLDALAccessor,NSpring.Spr ing101" />
</objects>
</spring>
</configuration>


Reply With Quote
