tags:

views:

961

answers:

2

Hi,

I'm a newbie for Spring.NET. I hit the following error when using Spring.Context.Support.ContextRegistry.GetContext().

System.Configuration.ConfigurationErrorsException: Error creating context 'spring.root': Error registering object defined in 'config [C:\source\gui\bin\Debug\TryClient.vshost.exe.config#spring/objects] at line 1' : There is no parser registered for namespace ''

<object name="MemberModel" type="TryClient.Model.HROMS.Member, TryClient.Model.HROMS" singleton="false" /> ---> Spring.Objects.Factory.ObjectDefinitionStoreException: Error registering object defined in 'config [C:\source\gui\bin\Debug\TryClient.vshost.exe.config#spring/objects] at line 1' : There is no parser registered for namespace ''

<object name="MemberModel" type="TryClient.Model.HROMS.Member, TryClient.Model.HROMS" singleton="false" />

My app.config reads this.

<spring>
<context>
 <resource uri="config://spring/objects" />      
</context>
<objects xlms="http://www.springframework.net" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.net http://www.springframework.net/xsd/spring-objects.xsd"&gt;
 <object name="MemberModel" type="TryClient.Model.HROMS.Member, TryClient.Model.HROMS" singleton="false"/>
</objects>
</spring>

I'm using Spring.NET 1.2.0.

Any ideas?

Thanks in advance.

Param

+1  A: 

Hi,

there's a typo in your xml. instead of

<objects xlms="http://www.springframework.net"

write

<objects xmlns="http://www.springframework.net"

hth, Erich

Erich Eichinger
A: 

Oops... Thanks Erich. I was pulling my hairs out for more than 2 hrs...

that's why I wish we had a Spring IDE for spring.Net like the Java guys have....
tobsen