Results 1 to 2 of 2

Thread: There is no parser registered for namespace

  1. #1
    Join Date
    Jan 2009
    Posts
    2

    Default There is no parser registered for namespace

    Hi,

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

    Code:
    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'
    I'm using Spring.NET 1.2.0.

    Any ideas?

    Thanks in advance.

    Param

  2. #2
    Mark Pollack is offline Spring.NET Co-Lead Spring TeamSpring User
    Join Date
    Sep 2004
    Location
    New York, NY
    Posts
    1,683

    Default

    Hi Param,

    Can you show your App.config file? Looks like a small config issue. Try to look at the running examples, say MovieFinder, to see how it works, also Section 5.2.2 of the reference manual (near the bottom of the section) shows a complete app.config file setup.

    Generally speaking, as one uses Spring.NET more, you move the <objects/> XML into its own file and out of app.config, but lets take it one step at a time. Post your App.config and that should help.

    Cheers,
    Mark

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •